fun exceptionHandler(handler: (Throwable) -> Unit): Unit
Sets an exception handler that will be called whenever an exception occurs during transport.