@orbit/jsonapi
Version:
JSON:API support for Orbit.
29 lines (28 loc) • 790 B
TypeScript
import { Exception } from '@orbit/core';
/**
* A client-side error occurred while communicating with a remote server.
*/
export declare class ClientError extends Exception {
data?: unknown;
response?: Response;
constructor(description: string);
}
/**
* A server-side error occurred while communicating with a remote server.
*/
export declare class ServerError extends Exception {
data?: unknown;
response?: Response;
constructor(description: string);
}
/**
* A network error occurred while attempting to communicate with a remote
* server.
*/
export declare class NetworkError extends Exception {
constructor(description: string);
}
export declare class InvalidServerResponse extends Exception {
response: string;
constructor(response: string);
}