mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +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';
 | 
						|
  }
 | 
						|
}
 |