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.
Constructor Summary |
SpinnerErrorEvent(java.lang.Object source,
int code,
java.lang.Exception exception)
Construct an Event instance using the specified parameters. |
Methods inherited from class java.util.EventObject |
getSource,
toString |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
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 sourcecode
- the error codeexception
- the current exception
getMessageCode
public int getMessageCode()
- Gets the message code.
- Returns:
- the message code
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