@jrosadob/nestjs-sophia-framework
Version:
Franework para microservicios en NestJS
18 lines • 482 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Result = void 0;
class Result {
constructor() {
this.hasError = false;
this.errors = null;
}
addError(loggerId, statusCode, message) {
this.hasError = true;
if (this.errors === null) {
this.errors = [];
}
this.errors.push({ loggerId, statusCode, message });
}
}
exports.Result = Result;
//# sourceMappingURL=result.js.map