setErrorHandler

fun setErrorHandler(handler: (event: SmartAccountEvent, error: Throwable) -> Unit?)

Sets the error handler for listener errors.

The error handler receives the event that was being dispatched and the exception thrown by the failing listener.

Parameters

handler

Error handler function, or null to disable