Class ImagingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- nl.gx.webmanager.services.contentapi.ImagingException
-
- All Implemented Interfaces:
Serializable
public class ImagingException extends Exception
General image exception class for checked exceptions thrown while handling images.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ImagingException(Exception e)
Constructor.ImagingException(String msg)
Constructor.ImagingException(String msg, Exception e)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isMaxSizeExceeded()
Returns true if the cause of this exception being thrown is that the image is larger then the configured maximum size for images.void
setMaxSizeExceeded(boolean maxSizeExceeded)
Sets if the maximum size for images has been exceeded, being the cause of this exception being thrown.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
setMaxSizeExceeded
public void setMaxSizeExceeded(boolean maxSizeExceeded)
Sets if the maximum size for images has been exceeded, being the cause of this exception being thrown.- Parameters:
maxSizeExceeded
- true if the cause of this exception is that the maximum image size has exceeded
-
isMaxSizeExceeded
public boolean isMaxSizeExceeded()
Returns true if the cause of this exception being thrown is that the image is larger then the configured maximum size for images.- Returns:
- true if the cause of this exception being thrown is that the image is larger then the configured * maximum size for images
-
-