errors.ts
Version:
an nodejs error module
22 lines (21 loc) • 559 B
TypeScript
/**
* @Copyright Mohtasim Alam Sohom
* @Author Sohom829
* MIT Licensed
*/
declare class NonStringError extends TypeError {
constructor(message: string);
}
declare class NonBooleanError extends TypeError {
constructor(message: string);
}
declare class NonNumberError extends TypeError {
constructor(message: string);
}
declare class CustomError extends Error {
errName: string;
ErrStatus: any;
ErrMessage: string;
ErrOptional: boolean;
constructor(name: string, statusCode: any, description: string);
}