import { ValidationConstraintEnum } from "./ValidationConstraintEnum"; import { Types } from "./types"; /** * @param message The error message * @param value The value that violates the constraint * @param field The name of the field that triggered the constraint violation * @param constraint The name of the constraint violated * @param type The expected type for the field * @param code The application or module code for the error */ export declare class IsError extends Error { message: string; value: any; field?: string | undefined; constraint?: ValidationConstraintEnum | undefined; type?: Types | undefined; code?: string | undefined; constructor(message: string, value: any, field?: string | undefined, constraint?: ValidationConstraintEnum | undefined, type?: Types | undefined, code?: string | undefined); }