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: 23 November, 2024