ExtensibleError ⇐ Error 

Kind: global abstract class
Extends: Error


new ExtensibleError(message, [dropInternalStackFrames]) 

Base class of custom error classes, extending the native Error class.

This class has been introduced to fix the Babel-related issues with extending the native JavaScript (Error) classes.

Param Type Default Description
message string   The message describing the cause of the error.
[dropInternalStackFrames] boolean true Whether or not the call stack frames referring to the constructors of the custom errors should be excluded from the stack of this error (just like the native platform call stack frames are dropped by the JS engine). This flag is enabled by default.

extensibleError.name : string 

The name of this error, used in the generated stack trace.

Kind: instance property of ExtensibleError


extensibleError.message : string 

The message describing the cause of the error.

Kind: instance property of ExtensibleError


extensibleError._nativeError : Error 

Native error instance we use to generate the call stack. For some reason some browsers do not generate call stacks for instances of classes extending the native Error class, so we bypass this shortcoming this way.

Kind: instance property of ExtensibleError


extensibleError._stack : string 

The internal cache of the generated stack. The cache is filled upon first access to the stack property.

Kind: instance property of ExtensibleError


extensibleError._dropInternalStackFrames : boolean 

Whether or not the call stack frames referring to the constructors of the custom errors should be excluded from the stack of this error (just like the native platform call stack frames are dropped by the JS engine).

Kind: instance property of ExtensibleError


extensibleError.stack : string 

The call stack captured at the moment of creation of this error. The formatting of the stack is browser-dependant.

Kind: instance property of ExtensibleError