com.ibm.eNetwork.beans.HOD.event
Class MacroErrorEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.ibm.eNetwork.beans.HOD.event.HODEvent
              |
              +--com.ibm.eNetwork.beans.HOD.event.MacroErrorEvent
All Implemented Interfaces:
java.io.Serializable

public class MacroErrorEvent
extends com.ibm.eNetwork.beans.HOD.event.HODEvent

Event fired to MacroRuntimeListener.macroErrorEvent(). Fired if the Macro bean received either a user or an internal error. This class currently just contains a message describing the error.

See Also:
Serialized Form

Constructor Summary
MacroErrorEvent(Macro macro, java.lang.String arg)
          Constructs a working instance of a macro error event.
MacroErrorEvent(Macro macro, java.lang.String arg, int eid)
          Constructs a working instance of a macro error event.
 
Method Summary
 java.lang.String getMessage()
          Returns the error message for the error event.
 int getMessageID()
          Returns the error id for the error event.
 
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

MacroErrorEvent

public MacroErrorEvent(Macro macro,
                       java.lang.String arg)
Constructs a working instance of a macro error event.
Parameters:
macro - Macro bean that is the source of the event
arg - error message string for the event

MacroErrorEvent

public MacroErrorEvent(Macro macro,
                       java.lang.String arg,
                       int eid)
Constructs a working instance of a macro error event.
Parameters:
macro - Macro bean that is the source of the event
arg - error message string for the event
eid - integer error identifier corresponding to arg
Method Detail

getMessage

public java.lang.String getMessage()
Returns the error message for the error event.
Returns:
error message string

getMessageID

public int getMessageID()
Returns the error id for the error event.
Returns:
error message id