| Current Path : /home/deltalab/PMS/ims-connector/node_modules/graphql-compose-mongoose/lib/errors/ |
| Current File : //home/deltalab/PMS/ims-connector/node_modules/graphql-compose-mongoose/lib/errors/RuntimeError.js |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRuntimeErrorOTC = exports.RuntimeError = void 0;
class RuntimeError extends Error {
constructor(message) {
super(message);
this.__proto__ = RuntimeError.prototype;
}
}
exports.RuntimeError = RuntimeError;
function getRuntimeErrorOTC(schemaComposer) {
return schemaComposer.getOrCreateOTC('RuntimeError', (otc) => {
otc.addFields({
message: {
description: 'Runtime error message',
type: 'String',
},
});
});
}
exports.getRuntimeErrorOTC = getRuntimeErrorOTC;
//# sourceMappingURL=RuntimeError.js.map