Package org.java_websocket.exceptions
Class IncompleteHandshakeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.java_websocket.exceptions.IncompleteHandshakeException
- All Implemented Interfaces:
Serializable
exception which indicates that a incomplete handshake was received
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
attribute which size of handshake would have been preferredprivate static final long
Serializable -
Constructor Summary
ConstructorsConstructorDescriptionconstructor for a IncompleteHandshakeExceptionIncompleteHandshakeException
(int preferredSize) constructor for a IncompleteHandshakeException -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerializable- See Also:
-
preferredSize
private final int preferredSizeattribute which size of handshake would have been preferred
-
-
Constructor Details
-
IncompleteHandshakeException
public IncompleteHandshakeException(int preferredSize) constructor for a IncompleteHandshakeException- Parameters:
preferredSize
- the preferred size
-
IncompleteHandshakeException
public IncompleteHandshakeException()constructor for a IncompleteHandshakeExceptionpreferredSize will be 0
-
-
Method Details
-
getPreferredSize
public int getPreferredSize()Getter preferredSize- Returns:
- the preferredSize
-