mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-31 19:17:48 +00:00
16 lines
397 B
JavaScript
16 lines
397 B
JavaScript
/* eslint-disable max-classes-per-file */
|
|
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';
|
|
}
|
|
}
|