onServerError method

  1. @override
void onServerError(
  1. ServerErrorParams params
)
override

Reports that an unexpected error has occurred while executing the server. This notification is not used for problems with specific requests (which are returned as part of the response) but is used for exceptions that occur while performing other tasks, such as analysis or preparing notifications.

It is not possible to subscribe to or unsubscribe from this notification.

Implementation

@override
void onServerError(ServerErrorParams params) {
  server.stop();
}