@webhare/moodle-webservice
Version:
Moodle Web Service API client with intellisense and typechecking
13 lines (12 loc) • 415 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class MoodleError extends Error {
constructor(options) {
super(options.message || options.error);
this.name = 'MoodleError';
this.exception = options.exception ?? 'moodle_exception';
this.errorcode = options.errorcode;
this.debuginfo = options.debuginfo;
}
}
exports.default = MoodleError;