com.scooterframework.common.exception
Class FileUploadException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.scooterframework.common.exception.GenericException
                  extended by com.scooterframework.common.exception.FileUploadException
All Implemented Interfaces:
java.io.Serializable

public class FileUploadException
extends GenericException

class FileUploadException records file upload related exceptions.

See Also:
Serialized Form

Constructor Summary
FileUploadException(java.lang.Throwable cause)
           
 
Method Summary
 boolean causedByFileSizeLimitExceeded()
          happens when maximum.total.bytes.per.upload.request limit is violated.
 boolean causedByRequestSizeLimitExceeded()
          happens when maximum.bytes.per.uploaded.file limit is violated.
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileUploadException

public FileUploadException(java.lang.Throwable cause)
Method Detail

causedByFileSizeLimitExceeded

public boolean causedByFileSizeLimitExceeded()
happens when maximum.total.bytes.per.upload.request limit is violated.


causedByRequestSizeLimitExceeded

public boolean causedByRequestSizeLimitExceeded()
happens when maximum.bytes.per.uploaded.file limit is violated.


getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable