Your IP : 216.73.217.13


Current Path : /home/deltalab/PMS/sms-connector/node_modules/graphql-compose-mongoose/lib/errors/
Upload File :
Current File : //home/deltalab/PMS/sms-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