Package org.java_websocket.exceptions
Class WrappedIOException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.java_websocket.exceptions.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 happenedprivate 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 happenedjava.io.IOException
getIOException()
The wrapped IOException
-
-
-
Field Detail
-
connection
private final transient 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 happenedioException
- 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
-
-