Class WrappedIOException

  • All Implemented Interfaces:
    java.io.Serializable

    public class WrappedIOException
    extends java.lang.Exception
    Exception to wrap an IOException and include information about the websocket which had the exception
    Since:
    1.4.1
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private WebSocket connection
      The websocket where the IOException happened
      private java.io.IOException ioException
      The IOException
    • Constructor Summary

      Constructors 
      Constructor Description
      WrappedIOException​(WebSocket connection, java.io.IOException ioException)
      Wrapp an IOException and include the websocket
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      WebSocket getConnection()
      The websocket where the IOException happened
      java.io.IOException getIOException()
      The wrapped IOException
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • connection

        private final WebSocket connection
        The websocket where the IOException happened
      • ioException

        private final java.io.IOException ioException
        The IOException
    • Constructor Detail

      • WrappedIOException

        public WrappedIOException​(WebSocket connection,
                                  java.io.IOException ioException)
        Wrapp an IOException and include the websocket
        Parameters:
        connection - the websocket where the IOException happened
        ioException - the IOException
    • Method Detail

      • getConnection

        public WebSocket getConnection()
        The websocket where the IOException happened
        Returns:
        the websocket for the wrapped IOException
      • getIOException

        public java.io.IOException getIOException()
        The wrapped IOException
        Returns:
        IOException which is wrapped