|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.retek.commons.gui.event.RErrorEvent
This class represents a generic RErrorEvent that has occurred in the client. It contains an error code that represents the key into the messages properties file. Each value assigned to the RErrorEvent represents a replacement value when using the MessageFormat class. RErrorEvent defaults to a "warning" severity level upon creation.
Retek Inc. Copyright (c) 2002
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
RErrorEvent(java.lang.Object source,
java.lang.String errorCode)
Returns new RErrorEvent object. |
|
RErrorEvent(java.lang.Object source,
java.lang.String errorCode,
java.lang.String valueOne)
Returns new RErrorEvent object. |
|
RErrorEvent(java.lang.Object source,
java.lang.String errorCode,
java.lang.String valueOne,
java.lang.String valueTwo)
Creates new RErrorEvent object. |
Method Summary | |
---|---|
void |
addErrorValue(java.lang.String value)
Adds an error value to the stored error values. |
java.lang.String |
getErrorCode()
Retrieves the error code for the error event. |
java.lang.String |
getErrorValue(int index)
Retrieves a single error value stored in the RErrorEvent by index. |
java.lang.String |
getMessage()
Retrieves an internationally translated error messages. |
ErrorSeverity |
getSeverity()
Retrieves the severity level of the exception. |
void |
setErrorCode(java.lang.String errorCode)
Sets the error code for the error event. |
void |
setSeverity(ErrorSeverity severity)
Sets the severity level of the exception. |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public RErrorEvent(java.lang.Object source, java.lang.String errorCode)
source
- The object that generated the event.errorCode
- The error code to translate into an error message.public RErrorEvent(java.lang.Object source, java.lang.String errorCode, java.lang.String valueOne)
source
- The object that generated the event.errorCode
- The error code to translate into an error message.valueOne
- The first value to substitute in the error message.public RErrorEvent(java.lang.Object source, java.lang.String errorCode, java.lang.String valueOne, java.lang.String valueTwo)
source
- The object that generated the event.errorCode
- The error code to translate into an error message.valueOne
- The first value to substitute in the error message.valueTwo
- The second value to substitute in the error message.Method Detail |
public void setErrorCode(java.lang.String errorCode)
errorCode
- The error code to set in the event.public java.lang.String getErrorCode()
public void addErrorValue(java.lang.String value)
value
- A single error value.public java.lang.String getErrorValue(int index)
public java.lang.String getMessage()
public void setSeverity(ErrorSeverity severity)
severity
- The severity level .public ErrorSeverity getSeverity()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |