UNPKG

@genialis/resolwe

Version:
48 lines (47 loc) 1.18 kB
import { GenError } from '../core/errors/error'; /** * Api error. */ export declare class APIError extends GenError { name: string; private _associatedObject; constructor(message: string, associatedObject?: Object); readonly associatedObject: Object; } /** * Request error. */ export declare class RequestError extends APIError { url: string; name: string; constructor(url: string, message: string, associatedObject?: Object); } /** * HTTP status 500 - 599 */ export declare class ServerError extends RequestError { url: string; name: string; constructor(url: string, message: string, associatedObject?: Object); } /** * QueryOne error thrown when [[Resource]]'s queryOne method fails. */ export declare class QueryOneError extends APIError { name: string; constructor(message: string); } /** * Websocket error. */ export declare class WebsocketError extends APIError { name: string; constructor(message: string, associatedObject?: Object); } /** * Query observers error. */ export declare class QueryObserversError extends APIError { name: string; constructor(message: string, associatedObject?: Object); }