com.ibm.spinner
Class SpinnerErrorEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.ibm.spinner.SpinnerErrorEvent

public class SpinnerErrorEvent
extends java.util.EventObject

This event is used to notify that some internal error has occured, from the error code and the error message, the concrete error can be distinguished.

See Also:
Serialized Form

Constructor Summary
SpinnerErrorEvent(java.lang.Object source, int code, java.lang.Exception exception)
          Construct an Event instance using the specified parameters.
 
Method Summary
 java.lang.Exception getCurrentException()
          Gets the current exception.
 java.lang.String getMessage()
          Gets the message.
 int getMessageCode()
          Gets the 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

SpinnerErrorEvent

public SpinnerErrorEvent(java.lang.Object source,
                         int code,
                         java.lang.Exception exception)
Construct an Event instance using the specified parameters.
Parameters:
source - the event source
code - the error code
exception - the current exception
Method Detail

getCurrentException

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

getMessage

public java.lang.String getMessage()
Gets the message.
Returns:
the message

getMessageCode

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