ohif-viewer/Packages/ohif-viewerbase/client/lib/classes/OHIFError.js
2017-01-29 22:11:17 -02:00

14 lines
334 B
JavaScript

// @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;
}
}