1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const common_1 = require("@nestjs/common");
|
4 | class ExternalExceptionFilter {
|
5 | catch(exception, host) {
|
6 | if (exception instanceof Error && !(exception instanceof common_1.HttpException)) {
|
7 | ExternalExceptionFilter.logger.error(exception.message, exception.stack);
|
8 | }
|
9 | return exception;
|
10 | }
|
11 | }
|
12 | exports.ExternalExceptionFilter = ExternalExceptionFilter;
|
13 | ExternalExceptionFilter.logger = new common_1.Logger('ExceptionsHandler');
|