Top Description Fields Constructors Methods
org.java_websocket.exceptions

public Class WrappedIOException

extends Exception
Class Inheritance
Imports
java.io.IOException, org.java_websocket.WebSocket

Exception to wrap an IOException and include information about the websocket which had the exception
Since
1.4.1

Field Summary

Modifier and TypeField and Description
private final transient WebSocket
connection

The websocket where the IOException happened

private final IOException
ioException

The IOException

Constructor Summary

AccessConstructor and Description
public
WrappedIOException(WebSocket
the websocket where the IOException happened
connection
,
IOException
the IOException
ioException
)

Wrapp an IOException and include the websocket

Method Summary

Modifier and TypeMethod and Description
public WebSocket

Returns:

the websocket for the wrapped IOException
getConnection
()

The websocket where the IOException happened

public IOException

Returns:

IOException which is wrapped
getIOException
()

The wrapped IOException

Field Detail

connectionback to summary
private final transient WebSocket connection

The websocket where the IOException happened

ioExceptionback to summary
private final IOException ioException

The IOException

Constructor Detail

WrappedIOExceptionback to summary
public WrappedIOException(WebSocket connection, IOException ioException)

Wrapp an IOException and include the websocket

Parameters
connection:WebSocket

the websocket where the IOException happened

ioException:IOException

the IOException

Method Detail

getConnectionback to summary
public WebSocket getConnection()

The websocket where the IOException happened

Returns:WebSocket

the websocket for the wrapped IOException

getIOExceptionback to summary
public IOException getIOException()

The wrapped IOException

Returns:IOException

IOException which is wrapped