@halsp/core
Version:
面向云的现代渐进式轻量 Node.js 框架
13 lines (12 loc) • 463 B
TypeScript
export type ExceptionMessage = object & {
message: string;
[key: string]: any;
};
export declare function isExceptionMessage(error: any): error is string | ExceptionMessage;
export declare class HalspException extends Error {
readonly error?: string | ExceptionMessage | undefined;
constructor(error?: string | ExceptionMessage | undefined);
inner?: Error | any;
breakthrough: boolean;
setBreakthrough(breakthrough?: boolean): this;
}