com.cedarspring.tvm
Class ErrorEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.cedarspring.tvm.ErrorEvent
All Implemented Interfaces:
java.io.Serializable

public class ErrorEvent
extends java.util.EventObject

Fired by TVM to inform listeners that an error has occurred or to issue a warning.

Version:
1.2.2 15-Apr-2003
Author:
Cedar Spring Software, Inc.
See Also:
Serialized Form

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

ERROR

public static int ERROR
ERROR - Could not complete the method.


WARNING

public static int WARNING
WARNING - Completed the method with warnings.


INFO

public static int INFO
INFO - Not currently used.


errorNumber

private java.lang.String errorNumber

severity

private int severity

message

private java.lang.String message
Constructor Detail

ErrorEvent

public ErrorEvent(java.lang.Object source,
                  java.lang.String errorNumber,
                  int severity,
                  java.lang.String message)
Construct an ErrorEvent Object.

Parameters:
source - Reference to the object that produced the error
errorNumber - A unique error number
severity - Type of event: ERROR, WARNING, or INFO
message - message text
Method Detail

getErrorNumber

public java.lang.String getErrorNumber()
Gets the error number key.

Returns:
errorNumber

getSeverity

public int getSeverity()
Gets the type of Message: error, warning, or info.

Returns:
severity

getMessage

public java.lang.String getMessage()
Gets a localized error message from the error resource bundle.

Returns:
message

toString

public java.lang.String toString()
Gets a localized error message from the error resource bundle.

Overrides:
toString in class java.util.EventObject
Returns:
message