vee-dom
Version:
Small and easy to use virtual dom library
14 lines (9 loc) • 335 B
JavaScript
;
class BaseException {
constructor(message, errorObj) {
this.name = this.constructor.name;
this.message = message + (typeof errorObj == 'undefined' ? '' : '\nDetails: ' + JSON.stringify(errorObj, null, 4)) + '\nStacktrace:';
Error.captureStackTrace(this, this.constructor);
}
}
module.exports = BaseException;