15 lines
355 B
JavaScript
15 lines
355 B
JavaScript
export class DuplicateContactException extends Error {
|
|
constructor(data) {
|
|
super('DUPLICATE_CONTACT');
|
|
this.data = data;
|
|
this.name = 'DuplicateContactException';
|
|
}
|
|
}
|
|
export class ExceptionWithMessage extends Error {
|
|
constructor(data) {
|
|
super('ERROR_WITH_MESSAGE');
|
|
this.data = data;
|
|
this.name = 'ExceptionWithMessage';
|
|
}
|
|
}
|