UNPKG

@fontoxml/fontoxml-development-tools

Version:

Development tools for Fonto.

13 lines (11 loc) 363 B
export default class InputError extends Error { constructor(message, solution, code) { super(message); this.code = code || null; this.name = this.constructor.name; this.solution = solution; // A workaround to make `instanceof InputError` work in ES5 after babel transform this.constructor = InputError; this.__proto__ = InputError.prototype; } }