Package org.java_websocket.exceptions
Class LimitExceededException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.java_websocket.exceptions.InvalidDataException
-
- org.java_websocket.exceptions.LimitExceededException
-
- All Implemented Interfaces:
java.io.Serializable
public class LimitExceededException extends InvalidDataException
exception which indicates that the message limited was exceeded (CloseFrame.TOOBIG)- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
limit
A closer indication about the limitprivate static long
serialVersionUID
Serializable
-
Constructor Summary
Constructors Constructor Description LimitExceededException()
constructor for a LimitExceededExceptionLimitExceededException(int limit)
constructor for a LimitExceededExceptionLimitExceededException(java.lang.String s)
constructor for a LimitExceededExceptionLimitExceededException(java.lang.String s, int limit)
constructor for a LimitExceededException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getLimit()
Get the limit which was hit so this exception was caused-
Methods inherited from class org.java_websocket.exceptions.InvalidDataException
getCloseCode
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serializable- See Also:
- Constant Field Values
-
limit
private final int limit
A closer indication about the limit
-
-
Constructor Detail
-
LimitExceededException
public LimitExceededException()
constructor for a LimitExceededExceptioncalling LimitExceededException with closecode TOOBIG
-
LimitExceededException
public LimitExceededException(int limit)
constructor for a LimitExceededExceptioncalling InvalidDataException with closecode TOOBIG
-
LimitExceededException
public LimitExceededException(java.lang.String s, int limit)
constructor for a LimitExceededExceptioncalling InvalidDataException with closecode TOOBIG
-
LimitExceededException
public LimitExceededException(java.lang.String s)
constructor for a LimitExceededExceptioncalling InvalidDataException with closecode TOOBIG
- Parameters:
s
- the detail message.
-
-