java.io.Serializable
public static class FileUploadBase.SizeLimitExceededException extends FileUploadException
Modifier and Type | Field | Description |
---|---|---|
private long |
actual |
The actual size of the request.
|
private long |
permitted |
The maximum permitted size of the request.
|
Constructor | Description |
---|---|
SizeLimitExceededException() |
Constructs a
SizeExceededException with no
detail message. |
SizeLimitExceededException(java.lang.String message) |
Constructs a
SizeExceededException with
the specified detail message. |
SizeLimitExceededException(java.lang.String message,
long actual,
long permitted) |
Constructs a
SizeExceededException with
the specified detail message, and actual and permitted sizes. |
Modifier and Type | Method | Description |
---|---|---|
long |
getActualSize() |
Retrieves the actual size of the request.
|
long |
getPermittedSize() |
Retrieves the permitted size of the request.
|
getCause, printStackTrace, printStackTrace
private long actual
private long permitted
public SizeLimitExceededException()
SizeExceededException
with no
detail message.public SizeLimitExceededException(java.lang.String message)
SizeExceededException
with
the specified detail message.message
- The detail message.public SizeLimitExceededException(java.lang.String message, long actual, long permitted)
SizeExceededException
with
the specified detail message, and actual and permitted sizes.message
- The detail message.actual
- The actual request size.permitted
- The maximum permitted request size.