UNPKG

679 BTypeScriptView Raw
1/**
2 * Standard Kuzzle error.
3 *
4 * @see https://docs.kuzzle.io/core/2/api/errors/types/
5 */
6export declare class KuzzleError extends Error {
7 /**
8 * Http status code
9 */
10 status: number;
11 /**
12 * Stacktrace
13 */
14 stack: string;
15 /**
16 * Kuzzle stacktrace (development mode only)
17 */
18 kuzzleStack?: string;
19 /**
20 * Unique ID
21 */
22 id: string;
23 /**
24 * Code
25 */
26 code: number;
27 /**
28 * Associated errors
29 * (PartialError only)
30 */
31 errors?: Array<any>;
32 /**
33 * Number of associated errors
34 * (PartialError only)
35 */
36 count?: number;
37 constructor(apiError: any, stack?: any);
38}