|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.wrq.apptrieve.agent.ErrorMessage
public class ErrorMessage
Describes a single runtime error. An ErrorMessage has an error code, zero or more parameters, generic error text, and localized error text. Error parameters can either be objects of type java.lang.String or java.lang.Integer. Objects of this type are immutable.
To create an ErrorMessage object in an event handler, use the appropriate com.wrq.vhi.script.api.Event.createErrorMessage method.
Field Summary | |
---|---|
static int |
USER_GENERIC
|
Constructor Summary | |
---|---|
ErrorMessage(int code,
java.lang.Object[] params,
java.lang.String mesg,
java.lang.String localizedMesg)
Construct an ErrorMessage. |
|
ErrorMessage(int code,
java.lang.String mesg,
java.lang.String localizedMesg)
Construct an ErrorMessage. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares the specified object with this error message for equality. |
int |
getErrorCode()
Return the error code. |
java.lang.String |
getLocalizedText()
Get a localized textual description of the error. |
java.lang.Object |
getParameter(int index)
Get a specific parameter. |
int |
getParameterCount()
Get the number of parameters in this error message. |
java.lang.String |
getText()
Get a textual description of the error. |
int |
hashCode()
Returns the hash code value for this error message. |
java.lang.String |
toString()
Returns a textual description of the error. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int USER_GENERIC
Constructor Detail |
---|
public ErrorMessage(int code, java.lang.String mesg, java.lang.String localizedMesg)
code
- error codemesg
- generic message textlocalizedMesg
- localized message textpublic ErrorMessage(int code, java.lang.Object[] params, java.lang.String mesg, java.lang.String localizedMesg)
code
- error codeparams
- message parametersmesg
- generic message textlocalizedMesg
- localized message textMethod Detail |
---|
public int getErrorCode()
public java.lang.String getText()
public java.lang.String getLocalizedText()
public int getParameterCount()
public java.lang.Object getParameter(int index)
index
- parameter index
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- compare this object for equality
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |