Class 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 Detail

      • ImagingException

        public ImagingException​(String msg)
        Constructor.
        Parameters:
        msg - The error message.
      • ImagingException

        public ImagingException​(Exception e)
        Constructor. Instantiates a new ImagingException.
        Parameters:
        e - The original exception
      • ImagingException

        public ImagingException​(String msg,
                                Exception e)
        Constructor. Instantiates a new ImagingException.
        Parameters:
        msg - The error message
        e - The original exception
    • 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