setHandler MethodStatic
establish a new global unexpected error handler.
setHandler(handler: OnUnexpectedError): OnUnexpectedError
@returns the previous handler. Useful to temporarily change the handler.
Parameter | Type | Description |
---|---|---|
handler | OnUnexpectedError | the new global handler. You may provide your own function or use one of the static members of this class. The default is errorLog. |
Returns - OnUnexpectedError
the previous handler. Useful to temporarily change the handler.
Defined in
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.