UNPKG

gridiron-example

Version:

Example webpack project for gridiron and related components. Showcases what can be done with gridiron.

13 lines (12 loc) 364 B
export default class ExtendableError extends Error { constructor(message, innerError) { super(message) this.name = this.constructor.name this.message = message this.innerError = innerError if(Error.captureStackTrace) Error.captureStackTrace(this, this.constructor.name) else this.stack = (new Error()).stack } }