node-exceptions
Version:
Extendable error class for nodejs to extend native errors
13 lines (12 loc) • 310 B
TypeScript
interface IExtendedError {
name: string;
message: string;
code: string;
status: number;
}
declare class BaseException extends Error {
constructor(message: string, status?: number, code?: string, link?: string);
}
interface BaseException extends IExtendedError {
}
export { BaseException };