@dev-abhi/errorify
Version:
A utility package for simplified error handling and management in Node.js applications.
14 lines • 548 B
TypeScript
import { CustomError, ErrorDetails } from "../CustomError";
export declare class ValidationError extends CustomError {
constructor(message?: string, details?: ErrorDetails);
}
export declare class FieldRequiredError extends CustomError {
constructor(field: string);
}
export declare class FieldLengthError extends CustomError {
constructor(field: string, minLength: number, maxLength: number);
}
export declare class FieldFormatError extends CustomError {
constructor(field: string);
}
//# sourceMappingURL=validationErrors.d.ts.map