All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.imageprocessing.event.ColorListErrorEvent

java.lang.Object
   |
   +----java.util.EventObject
           |
           +----com.ibm.imageprocessing.event.ColorListErrorEvent

public class ColorListErrorEvent
extends EventObject
An exception is thrown when an illegal position is entered to access a particular color in the colorlist and to remove a color that does not exist in the colorlist. The exception is caught and this event is thrown. It contains the detailed error message, the message code and the exception.

See Also:
EventObject, ColorListErrorListener

Constructor Index

 o ColorListErrorEvent(Object, int, Exception, String)
Constructs a ColorListErrorEvent object with a specified source object.

Method Index

 o getCurrentException()
Gets a current exception
 o getMessage()
Gets a detailed error message
 o getMessageCode()
Gets the error message code

Constructors

 o ColorListErrorEvent
 public ColorListErrorEvent(Object source,
                            int messageCode,
                            Exception currentException,
                            String message)
Constructs a ColorListErrorEvent object with a specified source object.

Parameters:
source - object where the event originated
messageCode - code of the error message
currentException - exception that is thrown
message - detailed error message

Methods

 o getMessageCode
 public int getMessageCode()
Gets the error message code

Returns:
error message code
 o getCurrentException
 public Exception getCurrentException()
Gets a current exception

Returns:
current exception
 o getMessage
 public String getMessage()
Gets a detailed error message

Returns:
detailed error message

All Packages  Class Hierarchy  This Package  Previous  Next  Index