java.lang.Object
|
+--java.util.EventObject
|
+--com.cedarspring.tvm.ErrorEvent
Fired by TVM to inform listeners that an error has occurred or to issue a warning.
| Field Summary | |
static int |
ERROR
ERROR - Could not complete the method. |
private java.lang.String |
errorNumber
|
static int |
INFO
INFO - Not currently used. |
private java.lang.String |
message
|
private int |
severity
|
static int |
WARNING
WARNING - Completed the method with warnings. |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
ErrorEvent(java.lang.Object source,
java.lang.String errorNumber,
int severity,
java.lang.String message)
Construct an ErrorEvent Object. |
|
| Method Summary | |
java.lang.String |
getErrorNumber()
Gets the error number key. |
java.lang.String |
getMessage()
Gets a localized error message from the error resource bundle. |
int |
getSeverity()
Gets the type of Message: error, warning, or info. |
java.lang.String |
toString()
Gets a localized error message from the error resource bundle. |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static int ERROR
public static int WARNING
public static int INFO
private java.lang.String errorNumber
private int severity
private java.lang.String message
| Constructor Detail |
public ErrorEvent(java.lang.Object source,
java.lang.String errorNumber,
int severity,
java.lang.String message)
source - Reference to the object that produced the errorerrorNumber - A unique error numberseverity - Type of event: ERROR, WARNING, or INFOmessage - message text| Method Detail |
public java.lang.String getErrorNumber()
public int getSeverity()
public java.lang.String getMessage()
public java.lang.String toString()
toString in class java.util.EventObject