mirror of
				https://github.com/lingble/twenty.git
				synced 2025-10-31 12:47:58 +00:00 
			
		
		
		
	 cf334ada0e
			
		
	
	cf334ada0e
	
	
	
		
			
			* feat: wip exception handlers * feat: exception capturer * fix: rename exception-capturer into exception-handler * fix: remove unused variable
		
			
				
	
	
		
			18 lines
		
	
	
		
			486 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			486 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { Inject, Injectable } from '@nestjs/common';
 | |
| 
 | |
| import { ExceptionHandlerDriverInterface } from 'src/integrations/exception-handler/interfaces';
 | |
| 
 | |
| import { EXCEPTION_HANDLER_DRIVER } from './exception-handler.constants';
 | |
| 
 | |
| @Injectable()
 | |
| export class ExceptionHandlerService {
 | |
|   constructor(
 | |
|     @Inject(EXCEPTION_HANDLER_DRIVER)
 | |
|     private driver: ExceptionHandlerDriverInterface,
 | |
|   ) {}
 | |
| 
 | |
|   captureException(exception: unknown) {
 | |
|     this.driver.captureException(exception);
 | |
|   }
 | |
| }
 |