onUnhandledError property

ErrorCallback onUnhandledError
override

A callback that is fired on unhandled exceptions.

In the case where a user provided callback results in an exception that cannot be properly routed back to the client, this handler will be invoked. If it is not set, the exception will be swallowed.

Implementation

@override
ErrorCallback get onUnhandledError => _server?.onUnhandledError;