angular2
Version:
Angular 2 - a web framework for modern web apps
17 lines (16 loc) • 520 B
JavaScript
/**
* A base class for the WrappedException that can be used to identify
* a WrappedException from ExceptionHandler without adding circular
* dependency.
*/
export class BaseWrappedException extends Error {
constructor(message) {
super(message);
}
get wrapperMessage() { return ''; }
get wrapperStack() { return null; }
get originalException() { return null; }
get originalStack() { return null; }
get context() { return null; }
get message() { return ''; }
}