coa-error
Version:
error component for coa
15 lines (14 loc) • 401 B
TypeScript
export declare class CoaError extends Error {
name: string;
code: string;
stdout: boolean;
constructor(code: string, message: string, stdout?: boolean);
toJSON(): {
name: string;
code: string;
message: string;
};
toString(): string;
static message(code: string, message: string): never;
static throw(code: string, message: string): never;
}