coa-error
Version:
error component for coa
20 lines (19 loc) • 602 B
TypeScript
export declare class CoaContextError extends Error {
code: number;
mark: number | string;
custom: string;
stdout: boolean;
constructor(e: {
message: string;
code: number;
mark: number | string;
custom?: string;
stdout?: boolean;
});
}
export declare const die: {
hint(message: string, code?: number, mark?: number | string): never;
error(message: string, code?: number, mark?: number | string): never;
custom(custom: string, message: string, code?: number, mark?: number | string): never;
missing(name: string): never;
};