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