mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 02:28:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			497 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			497 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import AdapterError from '@ember-data/adapter/error';
 | |
| 
 | |
| export default class ControlGroupError extends AdapterError {
 | |
|   constructor(wrapInfo) {
 | |
|     const { accessor, creation_path, creation_time, token, ttl } = wrapInfo;
 | |
|     super();
 | |
|     this.message = 'Control Group encountered';
 | |
| 
 | |
|     // add items from the wrapInfo object to the error
 | |
|     this.token = token;
 | |
|     this.accessor = accessor;
 | |
|     this.creation_path = creation_path;
 | |
|     this.creation_time = creation_time;
 | |
|     this.ttl = ttl;
 | |
|   }
 | |
| }
 | 
