Merge branch 'develop' into feat/voice-as-twilio-capability

This commit is contained in:
Muhsin Keloth
2026-04-17 12:16:55 +04:00
committed by GitHub
663 changed files with 29699 additions and 495 deletions
+10 -1
View File
@@ -1,10 +1,19 @@
/* eslint-disable max-classes-per-file */
export class DuplicateContactException extends Error {
static DEFAULT_MESSAGE = 'DUPLICATE_CONTACT';
constructor(data) {
super('DUPLICATE_CONTACT');
super(DuplicateContactException.DEFAULT_MESSAGE);
this.data = data;
this.name = 'DuplicateContactException';
}
/** Server or client may assign `message` after construction; otherwise still DEFAULT_MESSAGE. */
get contactErrorDetail() {
return this.message === DuplicateContactException.DEFAULT_MESSAGE
? null
: this.message;
}
}
export class ExceptionWithMessage extends Error {
constructor(data) {