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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WebSocketThe websocket where the IOException happenedprivate final IOExceptionThe IOException -
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 Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
connection
The websocket where the IOException happened -
ioException
The IOException
-
-
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
-