raiden-api-sdk
Version:
SDK for interacting with the Raiden API
17 lines (16 loc) • 746 B
TypeScript
import { AjaxError } from 'rxjs/ajax';
export declare const BAD_REQUEST = "BAD_REQUEST";
export declare const PAYMENT_REQUIRED = "PAYMENT_REQUIRED";
export declare const NOT_FOUND = "NOT_FOUND";
export declare const CONFLICT = "CONFLICT";
export declare const INTERNAL_RAIDEN_NODE_ERROR = "INTERNAL_RAIDEN_NODE_ERROR";
export declare const NOT_IMPLEMENTED = "NOT_IMPLEMENTED";
export declare type ErrorType = typeof BAD_REQUEST | typeof PAYMENT_REQUIRED | typeof NOT_FOUND | typeof CONFLICT | typeof INTERNAL_RAIDEN_NODE_ERROR | typeof NOT_IMPLEMENTED;
export declare class RaidenAPIError extends Error {
type: ErrorType;
errors: {
[key: string]: string[];
} | string;
cause: AjaxError;
constructor(err: AjaxError);
}