@openactive/rpde-validator
Version:
A library to walk and validate an RPDE feed
12 lines (11 loc) • 324 B
JavaScript
module.exports = class ExtendableError extends Error {
constructor(message) {
super(message);
this.name = this.constructor.name;
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, this.constructor);
} else {
this.stack = (new Error(message)).stack;
}
}
};