public class FileSizeLimitExceededException extends FileUploadException
| Constructor and Description |
|---|
FileSizeLimitExceededException(String sMsg,
long nActual,
long nPermitted,
String sFieldName,
String sFilename)
Constructs a
SizeExceededException with the specified detail
message, and actual and permitted sizes. |
| Modifier and Type | Method and Description |
|---|---|
long |
getActualSize()
Retrieves the actual size of the request.
|
String |
getFieldName()
Returns the field name of the item, which caused the exception.
|
String |
getFileName()
Returns the file name of the item, which caused the exception.
|
long |
getPermittedSize()
Retrieves the permitted size of the request.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic FileSizeLimitExceededException(String sMsg, long nActual, long nPermitted, @Nullable String sFieldName, @Nullable String sFilename)
SizeExceededException with the specified detail
message, and actual and permitted sizes.sMsg - The detail message.nActual - The actual request size.nPermitted - The maximum permitted request size.sFieldName - Field name of the item, which caused the exception.sFilename - File name of the item, which caused the exception.@Nullable public String getFileName()
@Nullable public String getFieldName()
public long getActualSize()
public long getPermittedSize()
Copyright © 2014–2019 Philip Helger. All rights reserved.