All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.datesbeans.event.ActionErrorEvent
java.lang.Object
|
+----java.util.EventObject
|
+----com.ibm.datesbeans.event.ActionErrorEvent
- public class ActionErrorEvent
- extends java.util.EventObject
This event is fired if the computation does not finish successfully.
It can be used by the application assembler if he/she does
not care about the details of exceptional situation but just want to
show if the function was performed or not.
- Since:
- DatesBeans 1.0
- See Also:
- ActionErrorListener
ActionErrorEvent(Object, Exception, int)
- Constructs
ActionErrorEvent
object with the specified source object,
message code and exception object.
getCurrentException()
- Gets a current exception.
getMessage()
- Gets a detailed error message.
getMessageCode()
- Gets the error message code.
ActionErrorEvent
public ActionErrorEvent(java.lang.Object source,
java.lang.Exception exp,
int code)
Constructs ActionErrorEvent
object with the specified source object,
message code and exception object.
- Parameters:
source
- object where the event originated
code
- code of the error message
exp
- exception that is thrown
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
All Packages Class Hierarchy This Package Previous Next Index