Package org.java_websocket.exceptions
Class InvalidDataException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.java_websocket.exceptions.InvalidDataException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
InvalidFrameException
,InvalidHandshakeException
,LimitExceededException
public class InvalidDataException extends java.lang.Exception
exception which indicates that a invalid data was recieved- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
closecode
attribut which closecode will be returnedprivate static long
serialVersionUID
Serializable
-
Constructor Summary
Constructors Constructor Description InvalidDataException(int closecode)
constructor for a InvalidDataExceptionInvalidDataException(int closecode, java.lang.String s)
constructor for a InvalidDataException.InvalidDataException(int closecode, java.lang.String s, java.lang.Throwable t)
constructor for a InvalidDataException.InvalidDataException(int closecode, java.lang.Throwable t)
constructor for a InvalidDataException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCloseCode()
Getter closecode
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serializable- See Also:
- Constant Field Values
-
closecode
private final int closecode
attribut which closecode will be returned
-
-
Constructor Detail
-
InvalidDataException
public InvalidDataException(int closecode)
constructor for a InvalidDataException- Parameters:
closecode
- the closecode which will be returned
-
InvalidDataException
public InvalidDataException(int closecode, java.lang.String s)
constructor for a InvalidDataException.- Parameters:
closecode
- the closecode which will be returned.s
- the detail message.
-
InvalidDataException
public InvalidDataException(int closecode, java.lang.Throwable t)
constructor for a InvalidDataException.- Parameters:
closecode
- the closecode which will be returned.t
- the throwable causing this exception.
-
InvalidDataException
public InvalidDataException(int closecode, java.lang.String s, java.lang.Throwable t)
constructor for a InvalidDataException.- Parameters:
closecode
- the closecode which will be returned.s
- the detail message.t
- the throwable causing this exception.
-
-