captcha-canvas
Version:
A captcha generator by using skia-canvas module.
20 lines • 719 B
TypeScript
/**
* Custom error classes for better error handling and debugging
*/
export declare class CaptchaError extends Error {
code?: string | undefined;
constructor(message: string, code?: string | undefined);
}
export declare class ValidationError extends CaptchaError {
field?: string | undefined;
constructor(message: string, field?: string | undefined);
}
export declare class GenerationError extends CaptchaError {
cause?: Error | undefined;
constructor(message: string, cause?: Error | undefined);
}
export declare class ImageLoadError extends CaptchaError {
source?: string | undefined;
constructor(message: string, source?: string | undefined);
}
//# sourceMappingURL=errors.d.ts.map