Package org.java_websocket.exceptions
Class WrappedIOException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.java_websocket.exceptions.WrappedIOException
- All Implemented Interfaces:
Serializable
Exception to wrap an IOException and include information about the websocket which had the
exception
- Since:
- 1.4.1
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWrappedIOException
(WebSocket connection, IOException ioException) Wrapp an IOException and include the websocket -
Method Summary
Modifier and TypeMethodDescriptionThe websocket where the IOException happenedThe wrapped IOExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WrappedIOException
Wrapp an IOException and include the websocket- Parameters:
connection
- the websocket where the IOException happenedioException
- the IOException
-
-
Method Details
-
getConnection
The websocket where the IOException happened- Returns:
- the websocket for the wrapped IOException
-
getIOException
The wrapped IOException- Returns:
- IOException which is wrapped
-