UNPKG

@gooddata/react-components

Version:

GoodData.UI - A powerful JavaScript library for building analytical applications

17 lines (13 loc) 383 B
// (C) 2007-2018 GoodData Corporation export class RuntimeError extends Error { constructor(public message: string, public cause?: Error) { super(message); Object.setPrototypeOf(this, new.target.prototype); // restore prototype chain } public getMessage() { return this.message; } public getCause() { return this.cause; } }