Top Description Fields Constructors Methods
org.java_websocket.exceptions

public Class InvalidDataException

extends Exception
Class Inheritance
Known Direct Subclasses
org.java_websocket.exceptions.InvalidFrameException, org.java_websocket.exceptions.InvalidHandshakeException, org.java_websocket.exceptions.LimitExceededException

exception which indicates that a invalid data was received

Field Summary

Modifier and TypeField and Description
private final int
closecode

attribute which closecode will be returned

private static final long

Constructor Summary

AccessConstructor and Description
public
InvalidDataException(int
the closecode which will be returned
closecode
)

constructor for a InvalidDataException

public
InvalidDataException(int
the closecode which will be returned.
closecode
,
String
the detail message.
s
)

constructor for a InvalidDataException.

public
InvalidDataException(int
the closecode which will be returned.
closecode
,
Throwable
the throwable causing this exception.
t
)

constructor for a InvalidDataException.

public
InvalidDataException(int
the closecode which will be returned.
closecode
,
String
the detail message.
s
,
Throwable
the throwable causing this exception.
t
)

constructor for a InvalidDataException.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the closecode
getCloseCode
()

Getter closecode

Field Detail

closecodeback to summary
private final int closecode

attribute which closecode will be returned

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Serializable

Constructor Detail

InvalidDataExceptionback to summary
public InvalidDataException(int closecode)

constructor for a InvalidDataException

Parameters
closecode:int

the closecode which will be returned

InvalidDataExceptionback to summary
public InvalidDataException(int closecode, String s)

constructor for a InvalidDataException.

Parameters
closecode:int

the closecode which will be returned.

s:String

the detail message.

InvalidDataExceptionback to summary
public InvalidDataException(int closecode, Throwable t)

constructor for a InvalidDataException.

Parameters
closecode:int

the closecode which will be returned.

t:Throwable

the throwable causing this exception.

InvalidDataExceptionback to summary
public InvalidDataException(int closecode, String s, Throwable t)

constructor for a InvalidDataException.

Parameters
closecode:int

the closecode which will be returned.

s:String

the detail message.

t:Throwable

the throwable causing this exception.

Method Detail

getCloseCodeback to summary
public int getCloseCode()

Getter closecode

Returns:int

the closecode