ember-app-scheduler
Version:
Ember addon to schedule work at different phases of app life cycle.
16 lines • 500 B
JavaScript
/**
* Subclass of `Error` with additional information
* about location of incorrect markup.
*/
const SyntaxError = function () {
SyntaxError.prototype = Object.create(Error.prototype);
SyntaxError.prototype.constructor = SyntaxError;
function SyntaxError(message, location) {
let error = Error.call(this, message);
this.message = message;
this.stack = error.stack;
this.location = location;
}
return SyntaxError;
}();
export default SyntaxError;