@othree.io/excuses
Version:
Excuses
20 lines • 744 B
TypeScript
/**
* Custom Error class representing an invalid date format error.
*/
export declare class InvalidDateError extends Error {
/** Static error code to identify the error type. */
static ERROR: string;
/** Expected date format that caused the error. */
format?: string;
/** Date value that failed validation. */
value?: string;
/**
* Creates a new InvalidDateError.
*
* @param {string} [format] - Expected date format that caused the error.
* @param {string} [value] - Date value that failed validation.
* @param {string} [message] - Optional custom error message.
*/
constructor(format?: string, value?: string, message?: string);
}
//# sourceMappingURL=invalid-date-error.d.ts.map