kafka-nestjs
Version:
A structured Kafka integration for NestJS inspired by BullMQ, offering decorators, modular configuration, and a scalable consumer/producer architecture.
26 lines • 866 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.UnHandledServerException = exports.ServerException = void 0;
const common_1 = require("@nestjs/common");
class ServerException extends common_1.InternalServerErrorException {
constructor(options) {
const { information } = options;
super({
status: common_1.HttpStatus.INTERNAL_SERVER_ERROR,
message: information.message,
});
}
}
exports.ServerException = ServerException;
class UnHandledServerException extends ServerException {
constructor() {
super({
information: {
message: 'server error',
identifier: 'serverError.unhandled',
},
});
}
}
exports.UnHandledServerException = UnHandledServerException;
//# sourceMappingURL=server.exception.js.map