OOP Pop3Receiver Version 2.2

com.bentofw.util
Class LargeImageException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.bentofw.util.LargeImageException
All Implemented Interfaces:
java.io.Serializable

public class LargeImageException
extends java.lang.RuntimeException

Thrown if the uploaded file is larger than the specified maximum file.

If the width/height of the uploaded image file (JPEG, GIF or PNG) is larger than the specified one, this exception will be thrown.

Since:
1.4
Author:
Jun Inamori

See Also:
Serialized Form

Constructor Summary
LargeImageException(int max_width, int max_height, int width, int height, java.lang.String filename)
          The constructor.
 
Method Summary
 java.lang.String getFileName()
          Return the file name to be uploaded.
 int getHeight()
          Return the height of the uploaded image.
 int getMaximumHeight()
          Return the maximum height to be allowed.
 int getMaximumWidth()
          Return the maximum width to be allowed.
 java.lang.String getMessage()
          Return the error message.
 int getWidth()
          Return the width of the uploaded image.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LargeImageException

public LargeImageException(int max_width,
                           int max_height,
                           int width,
                           int height,
                           java.lang.String filename)
The constructor.

Method Detail

getMessage

public java.lang.String getMessage()
Return the error message.

Overrides:
getMessage in class java.lang.Throwable

getMaximumWidth

public int getMaximumWidth()
Return the maximum width to be allowed.


getMaximumHeight

public int getMaximumHeight()
Return the maximum height to be allowed.


getWidth

public int getWidth()
Return the width of the uploaded image.


getHeight

public int getHeight()
Return the height of the uploaded image.


getFileName

public java.lang.String getFileName()
Return the file name to be uploaded.


OOP Pop3Receiver Version 2.2

ALL CONTENTS COPYRIGHT 2005, OOP-Research Corporation. All rights reserved.
Any questions and comments are welcome to OOP-Research Corporation.