Constructor
new TwyrBaseError(message, inneropt)
Extends the JS native "Error" object to make it easier for typing / stack tracing / etc.
- Source:
Extends the JS native "Error" object to make it easier for typing / stack tracing / etc. Based on Lee Benson's answer to Extending Error in Javascript with ES6 syntax
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
string |
The Error Message. |
|
inner |
Error |
<optional> |
Inner Error, if any. |
Extends
- Error
Methods
toJSON()
- Source:
toString()
- Source: