UNPKG

@nestjs/core

Version:

Nest - modern, fast, powerful node.js web framework (@core)

14 lines (13 loc) 537 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const common_1 = require("@nestjs/common"); class ExternalExceptionFilter { catch(exception, host) { if (exception instanceof Error && !(exception instanceof common_1.HttpException)) { ExternalExceptionFilter.logger.error(exception.message, exception.stack); } throw exception; } } exports.ExternalExceptionFilter = ExternalExceptionFilter; ExternalExceptionFilter.logger = new common_1.Logger('ExceptionsHandler');