Class UploadRefusedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.commons.fileupload2.core.FileUploadException
org.exoplatform.upload.UploadRefusedException
- All Implemented Interfaces:
Serializable
public class UploadRefusedException
extends org.apache.commons.fileupload2.core.FileUploadException
A refusal of an uploaded file by an
UploadFileValidator, as
UploadService rethrows it. A validator may refuse with a
FileUploadException whose cause is an IOException (an
unreadable compressed SVG, a file too large to inspect), the shape the
multipart parser gives a failed staging write: this type tells a caller that
the request was refused, not that the server failed.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUploadRefusedException(org.apache.commons.fileupload2.core.FileUploadException refusal) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UploadRefusedException
public UploadRefusedException(org.apache.commons.fileupload2.core.FileUploadException refusal) - Parameters:
refusal- the validator's refusal, whose message is kept
-