Chatwoot/app/javascript/shared/helpers/CustomErrors.js
Nithin David Thomas c17380d48a
Feat: Create contact from contacts page (#1806)
* Add contact create modal to contacts page

* Test cases

* Review fixes
2021-02-19 20:22:58 +05:30

15 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';
}
}