ru.tunegov.mathematic.event
Class ActionErrorEvent
java.lang.Object
|
+--java.util.EventObject
|
+--ru.tunegov.mathematic.event.ActionErrorEvent
- All Implemented Interfaces:
- java.io.Serializable
- 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:
- Mathematic 1.0
- See Also:
- Serialized Form
|
Constructor Summary |
ActionErrorEvent(java.lang.Object source,
java.lang.Exception exp,
int code)
Constructs ActionErrorEvent object with the specified source object,
message code and exception object. |
| Methods inherited from class java.util.EventObject |
getSource,
toString |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
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 originatedcode - code of the error messageexp - 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