You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Like message, and messageData are "special" properties, previousError should provide a way to stack errors for more detailed information. For example :
varCustomError1=errorFactory('CustomError1');varCustomError2=errorFactory('CustomError2',['message','previousError']);varerr=CustomError2("Example",CustomError1("Stacked error"));console.log(err.stack);// Error: Example// at ...// Error: Stacked Error// at ...
Since the stacked error stack trace is invoked directly, this behaviour can be recursive.
The text was updated successfully, but these errors were encountered:
Like
message
, andmessageData
are "special" properties,previousError
should provide a way to stack errors for more detailed information. For example :Since the stacked error stack trace is invoked directly, this behaviour can be recursive.
The text was updated successfully, but these errors were encountered: