17 lines
307 B
TypeScript
17 lines
307 B
TypeScript
/**
|
|
* Validation Error
|
|
*
|
|
* Thrown when input validation fails.
|
|
*/
|
|
|
|
export class ValidationError extends Error {
|
|
readonly type = 'domain';
|
|
readonly context = 'validation';
|
|
readonly kind = 'validation';
|
|
|
|
constructor(message: string) {
|
|
super(message);
|
|
this.name = 'ValidationError';
|
|
}
|
|
}
|