jii
Version:
Jii - Full-Stack JavaScript Framework
20 lines (15 loc) • 409 B
JavaScript
/**
* @author Vladimir Kozhin <affka@affka.ru>
* @license MIT
*/
;
class ApplicationException extends Error {
preInit(message) {
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
this.name = this.constructor.name;
this.message = message || '';
}
}
module.exports = ApplicationException;