import { IExceptionHandler } from '../interfaces' ; import { BaseException } from '../../../impl/BaseException' ; import { Logger } from '../../../../logger' ; export class RpcExceptionHandler implements IExceptionHandler { private readonly logger = new Logger ( 'RpcExceptionHandler' ) ; constructor ( private readonly exception ) { } public wrapError ( ) { return this . exception ; } public warnAboutError ( ) { const { message } = this . exception ; this . logger . debug ( `Internal exception: ${ message }` ) ; } }