com.nokia.mid.imagescale
Class ImageScalerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.nokia.mid.imagescale.ImageScalerException

public class ImageScalerException
extends java.lang.Exception

Represents exceptions thrown by the ImageScaler classes. This class has a reason code optionally associated with it to provide more information about the exception that occurred.


Field Summary
static int SCALE_IMAGE_DEST_FILE_IN_USE
          dest file is in use.
static int SCALE_IMAGE_GENERAL_ERROR
          general error.
static int SCALE_IMAGE_INVALID_ID
          invalid request id
static int SCALE_IMAGE_INVALID_PARAMETER
          invalid parameter
static int SCALE_IMAGE_SOURCE_FILE_NOT_FOUND
          source file cannot be found.
static int SCALE_IMAGE_UNSUPPORTED_FILE_TYPE
          the file type cannot be supported
 
Constructor Summary
ImageScalerException()
          Constructs a new instance of this class with its stack trace filled in.
ImageScalerException(java.lang.String detailMessage)
          Constructs a new instance of this class with its stacktrace and message filled in.
ImageScalerException(java.lang.String detailMessage, int reason)
          Constructs a new instance of this class with its stacktrace, message, and reason filled in.
 
Method Summary
 int getReason()
          Returns the reason for the exception.
 
Methods inherited from class java.lang.Throwable
getMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SCALE_IMAGE_SOURCE_FILE_NOT_FOUND

public static final int SCALE_IMAGE_SOURCE_FILE_NOT_FOUND
source file cannot be found.

See Also:
Constant Field Values

SCALE_IMAGE_DEST_FILE_IN_USE

public static final int SCALE_IMAGE_DEST_FILE_IN_USE
dest file is in use.

See Also:
Constant Field Values

SCALE_IMAGE_UNSUPPORTED_FILE_TYPE

public static final int SCALE_IMAGE_UNSUPPORTED_FILE_TYPE
the file type cannot be supported

See Also:
Constant Field Values

SCALE_IMAGE_INVALID_ID

public static final int SCALE_IMAGE_INVALID_ID
invalid request id

See Also:
Constant Field Values

SCALE_IMAGE_INVALID_PARAMETER

public static final int SCALE_IMAGE_INVALID_PARAMETER
invalid parameter

See Also:
Constant Field Values

SCALE_IMAGE_GENERAL_ERROR

public static final int SCALE_IMAGE_GENERAL_ERROR
general error.

See Also:
Constant Field Values
Constructor Detail

ImageScalerException

public ImageScalerException()
Constructs a new instance of this class with its stack trace filled in.


ImageScalerException

public ImageScalerException(java.lang.String detailMessage)
Constructs a new instance of this class with its stacktrace and message filled in.


ImageScalerException

public ImageScalerException(java.lang.String detailMessage,
                            int reason)
Constructs a new instance of this class with its stacktrace, message, and reason filled in.

Method Detail

getReason

public int getReason()
Returns the reason for the exception. The int returned is one of the values ImageScalerException.SCALE_IMAGE_* defined in this class.



Copyright © 2012 Nokia Corporation. All rights reserved.

Nokia is registered trademark of Nokia Corporation. Java and all Java-based marks are trademarks or registered trademarks of Oracle Corporation. Other product and company names mentioned herein may be trademarks or trade names of their respective owners. This document is confidential information of Nokia Corporation.

Disclaimer
The information in this document is provided "as is," with no warranties whatsoever, including any warranty of merchantability, fitness for any particular purpose, or any warranty otherwise arising out of any proposal, specification, or sample. Furthermore, information provided in this document is preliminary, and may be changed substantially prior to final release.

Nokia Corporation disclaims all liability, including liability for infringement of any proprietary rights, relating to this document and implementation of any information presented in this document.

Nokia Corporation retains the right to make changes to this document at any time, without notice.

License
Subject to above disclaimer, a license is hereby granted to use this documentation solely under existing Limited License Agreement and non-disclosure agreement between the companies for the agreed application development for Series 40 Nokia phones. No other licenses e.g. to any intellectual property rights are granted herein. Any use of the screen shots of this documentation, including any icons thereof, is subject to Nokia's prior written approval.