Top Description Fields Constructors Methods
org.apache.tomcat.util.http.fileupload.impl

public abstract Class SizeException

extends FileUploadException
Class Inheritance
Known Direct Subclasses
org.apache.tomcat.util.http.fileupload.impl.SizeLimitExceededException, org.apache.tomcat.util.http.fileupload.impl.FileSizeLimitExceededException
Imports
org.apache.tomcat.util.http.fileupload.FileUploadException

This exception is thrown, if a requests permitted size is exceeded.

Field Summary

Modifier and TypeField and Description
private final long
actual

The actual size of the request.

private final long
permitted

The maximum permitted size of the request.

private static final long

Constructor Summary

AccessConstructor and Description
protected
SizeException(final String
The detail message.
message
,
final long
The actual number of bytes in the request.
actual
,
final long
The requests size limit, in bytes.
permitted
)

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

The actual size of the request.
getActualSize
()

Retrieves the actual size of the request.

public long

Returns:

The permitted size of the request.
getPermittedSize
()

Retrieves the permitted size of the request.

Field Detail

actualback to summary
private final long actual

The actual size of the request.

permittedback to summary
private final long permitted

The maximum permitted size of the request.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.tomcat.util.http.fileupload.FileUploadException.serialVersionUID.

Serial version UID, being used, if serialized.

Constructor Detail

SizeExceptionback to summary
protected SizeException(final String message, final long actual, final long permitted)

Creates a new instance.

Parameters
message:String

The detail message.

actual:long

The actual number of bytes in the request.

permitted:long

The requests size limit, in bytes.

Method Detail

getActualSizeback to summary
public long getActualSize()

Retrieves the actual size of the request.

Returns:long

The actual size of the request.

Since
1.3
getPermittedSizeback to summary
public long getPermittedSize()

Retrieves the permitted size of the request.

Returns:long

The permitted size of the request.

Since
1.3