integration tests
This commit is contained in:
16
core/shared/errors/ValidationError.ts
Normal file
16
core/shared/errors/ValidationError.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* 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';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user