Class LimitExceededException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.java_websocket.exceptions.InvalidDataException
org.java_websocket.exceptions.LimitExceededException
- All Implemented Interfaces:
Serializable
exception which indicates that the message limited was exceeded (CloseFrame.TOOBIG)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionconstructor for a LimitExceededExceptionLimitExceededException(int limit) constructor for a LimitExceededExceptionconstructor for a LimitExceededExceptionLimitExceededException(String s, int limit) constructor for a LimitExceededException -
Method Summary
Modifier and TypeMethodDescriptionintgetLimit()Get the limit which was hit so this exception was causedMethods inherited from class InvalidDataException
getCloseCodeMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LimitExceededException
public LimitExceededException()constructor for a LimitExceededExceptioncalling LimitExceededException with closecode TOOBIG
-
LimitExceededException
public LimitExceededException(int limit) constructor for a LimitExceededExceptioncalling InvalidDataException with closecode TOOBIG
- Parameters:
limit- the allowed size which was not enough
-
LimitExceededException
constructor for a LimitExceededExceptioncalling InvalidDataException with closecode TOOBIG
- Parameters:
s- the detail message.limit- the allowed size which was not enough
-
LimitExceededException
constructor for a LimitExceededExceptioncalling InvalidDataException with closecode TOOBIG
- Parameters:
s- the detail message.
-
-
Method Details
-
getLimit
public int getLimit()Get the limit which was hit so this exception was caused- Returns:
- the limit as int
-