ohif-viewer/Packages/ohif-viewerbase/client/lib/classes/OHIFError.js

14 lines
334 B
JavaScript
Raw Normal View History

2017-01-16 15:47:29 +01:00
// @TODO: improve this object
/**
* Objects to be used to throw errors, specially
* in Trackers functions (afterFlush, Flush).
*/
export class OHIFError extends Error {
constructor(message) {
super();
this.message = message;
this.stack = (new Error()).stack;
this.name = this.constructor.name;
}
}