Class UnhandledException

All Implemented Interfaces:
Serializable

public class UnhandledException extends RuntimeException
Wraps any Throwable in this unchecked exception, accessible using Throwable.getCause().

Thrown by SocketConnection methods if no onError handler is set. Note that, usually, classes creating and managing a SocketConnection will set a default error handler, which will cause the error handler to be called instead of this exception being thrown.

Since:
1.6
See Also:
  • Constructor Details

    • UnhandledException

      public UnhandledException(Throwable e)
      Creates a new UnhandledException with the given Throwable.
      Parameters:
      e - The Throwable
  • Method Details

    • rethrowIOException

      public void rethrowIOException() throws IOException
      If this UnhandledException wraps an IOException, this method throws it; otherwise, it does nothing.
      Throws:
      IOException - The wrapped IOException