UNPKG

629 BTypeScriptView Raw
1interface ExceptionWithCode {
2 code: string | number;
3 name?: string;
4 message?: string;
5 stack?: string;
6}
7interface ExceptionWithMessage {
8 code?: string | number;
9 message: string;
10 name?: string;
11 stack?: string;
12}
13interface ExceptionWithName {
14 code?: string | number;
15 message?: string;
16 name: string;
17 stack?: string;
18}
19/**
20 * Defines Exception.
21 *
22 * string or an object with one of (message or name or code) and optional stack
23 */
24export declare type Exception = ExceptionWithCode | ExceptionWithMessage | ExceptionWithName | string;
25export {};
26//# sourceMappingURL=Exception.d.ts.map
\No newline at end of file