Top Description Fields Constructors Methods
org.java_websocket.exceptions

public Class LimitExceededException

extends InvalidDataException
Class Inheritance
Imports
org.java_websocket.framing.CloseFrame

exception which indicates that the message limited was exceeded (CloseFrame.TOOBIG)

Field Summary

Modifier and TypeField and Description
private final int
limit

A closer indication about the limit

private static final long

Constructor Summary

AccessConstructor and Description
public
LimitExceededException()

constructor for a LimitExceededException

calling LimitExceededException with closecode TOOBIG

public
LimitExceededException(int
the allowed size which was not enough
limit
)

constructor for a LimitExceededException

calling InvalidDataException with closecode TOOBIG

public
LimitExceededException(String
the detail message.
s
,
int
the allowed size which was not enough
limit
)

constructor for a LimitExceededException

calling InvalidDataException with closecode TOOBIG

public
LimitExceededException(String
the detail message.
s
)

constructor for a LimitExceededException

calling InvalidDataException with closecode TOOBIG

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the limit as int
getLimit
()

Get the limit which was hit so this exception was caused

Inherited from org.java_websocket.exceptions.InvalidDataException:
getCloseCode

Field Detail

limitback to summary
private final int limit

A closer indication about the limit

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.java_websocket.exceptions.InvalidDataException.serialVersionUID.

Serializable

Constructor Detail

LimitExceededExceptionback to summary
public LimitExceededException()

constructor for a LimitExceededException

calling LimitExceededException with closecode TOOBIG

LimitExceededExceptionback to summary
public LimitExceededException(int limit)

constructor for a LimitExceededException

calling InvalidDataException with closecode TOOBIG

Parameters
limit:int

the allowed size which was not enough

LimitExceededExceptionback to summary
public LimitExceededException(String s, int limit)

constructor for a LimitExceededException

calling InvalidDataException with closecode TOOBIG

Parameters
s:String

the detail message.

limit:int

the allowed size which was not enough

LimitExceededExceptionback to summary
public LimitExceededException(String s)

constructor for a LimitExceededException

calling InvalidDataException with closecode TOOBIG

Parameters
s:String

the detail message.

Method Detail

getLimitback to summary
public int getLimit()

Get the limit which was hit so this exception was caused

Returns:int

the limit as int