public class ErrorMessage
extends java.lang.Object
To create an ErrorMessage object in an event handler, use the appropriate com.wrq.vhi.script.api.Event.createErrorMessage method.
Modifier and Type | Field and Description |
---|---|
static int |
USER_GENERIC |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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 textpublic int getErrorCode()
public java.lang.String getText()
public java.lang.String getLocalizedText()
public int getParameterCount()
public java.lang.Object getParameter(int index)
index
- parameter indexpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- compare this object for equalitypublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object