com.ibm.processingbean.events
Class ActionErrorEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.ibm.processingbean.events.ActionErrorEvent
Direct Known Subclasses:
CryptoTransformationErrorEvent, IOErrorEvent

public class ActionErrorEvent
extends java.util.EventObject

This event is fired if the computation is(!) not finished(!) successfully. It can be used by the application assembler only to indicate whether the action was performed or not, regardless of the details of any(!) exceptional situation.

See Also:
EventObject, ActionErrorListener, Serialized Form

Constructor Summary
ActionErrorEvent(java.lang.Object source, java.lang.Exception currentException, int messageCode)
          Constructs an ActionErrorEvent object with the specified source object, message code and exception object.
 
Method Summary
 java.lang.Exception getCurrentException()
          Gets a current exception.
 java.lang.String getMessage()
          Gets a detailed error message.
 int getMessageCode()
          Gets the error message code.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionErrorEvent

public ActionErrorEvent(java.lang.Object source,
                        java.lang.Exception currentException,
                        int messageCode)
Constructs an ActionErrorEvent object with the specified source object, message code and exception object.
Parameters:
source - object where the event originated
messageCode - code of the error message
currentException - exception that is thrown
Method Detail

getCurrentException

public java.lang.Exception getCurrentException()
Gets a current exception.
Returns:
current exception

getMessage

public java.lang.String getMessage()
Gets a detailed error message.
Returns:
detailed error message

getMessageCode

public int getMessageCode()
Gets the error message code.
Returns:
error message code