2021-02-19 14:52:58 +00:00
|
|
|
/* eslint-disable max-classes-per-file */
|
2020-08-22 18:35:07 +00:00
|
|
|
export class DuplicateContactException extends Error {
|
|
|
|
constructor(data) {
|
|
|
|
super('DUPLICATE_CONTACT');
|
|
|
|
this.data = data;
|
|
|
|
this.name = 'DuplicateContactException';
|
|
|
|
}
|
|
|
|
}
|
2021-02-19 14:52:58 +00:00
|
|
|
export class ExceptionWithMessage extends Error {
|
|
|
|
constructor(data) {
|
|
|
|
super('ERROR_WITH_MESSAGE');
|
|
|
|
this.data = data;
|
|
|
|
this.name = 'ExceptionWithMessage';
|
|
|
|
}
|
|
|
|
}
|