public class ErrorMessage
extends java.lang.Object
Root element of a general error response when no whois record is retrieved (eg. authentication error, insufficient queries balance, etc)
<xsd:element name="ErrorMessage"> <xsd:complexType> <xsd:sequence> <xsd:element name="message" type="xsd:string"> </xsd:element> </xsd:sequence> </xsd:complexType> </xsd:element>
ErrorCodes
Constructor and Description |
---|
ErrorMessage() |
ErrorMessage(java.lang.String msg) |
ErrorMessage(java.lang.String errorCode,
java.lang.String msg) |
Modifier and Type | Method and Description |
---|---|
void |
addError(java.lang.String err) |
void |
addError(java.lang.String errorCode,
java.lang.String err) |
void |
addErrors(ErrorMessage err) |
java.lang.String |
getErrorCode() |
java.lang.String |
getMsg() |
boolean |
isNull() |
static void |
main(java.lang.String[] args) |
void |
setErrorCode(java.lang.String errorCode) |
void |
setMsg(java.lang.String msg) |
public ErrorMessage()
public ErrorMessage(java.lang.String msg)
public ErrorMessage(java.lang.String errorCode, java.lang.String msg)
public boolean isNull()
public void addError(java.lang.String err)
public void addError(java.lang.String errorCode, java.lang.String err)
public void addErrors(ErrorMessage err)
public java.lang.String getErrorCode()
public void setErrorCode(java.lang.String errorCode)
public java.lang.String getMsg()
public void setMsg(java.lang.String msg)
public static void main(java.lang.String[] args)