public class ErrorResponse
extends java.lang.Object
Constructor and Description |
---|
ErrorResponse() |
ErrorResponse(int httpcode,
java.lang.String message,
java.lang.String context,
java.lang.String other) |
Modifier and Type | Method and Description |
---|---|
DapException |
buildException()
Convert an ErrorResponse to the equivalent DapException.
|
java.lang.String |
buildXML()
Convert an ErrorResponse to the equivalent XML
|
int |
getCode() |
java.lang.String |
getContext() |
java.lang.String |
getMessage() |
java.lang.String |
getOtherInfo() |
java.lang.String |
getRawContext() |
java.lang.String |
getRawMessage() |
java.lang.String |
getRawOtherInfo() |
void |
setCode(int code) |
void |
setContext(java.lang.String context) |
void |
setMessage(java.lang.String message) |
void |
setOtherInfo(java.lang.String other) |
public ErrorResponse()
public ErrorResponse(int httpcode, java.lang.String message, java.lang.String context, java.lang.String other)
public int getCode()
public java.lang.String getRawMessage()
public java.lang.String getMessage()
public java.lang.String getRawContext()
public java.lang.String getContext()
public java.lang.String getRawOtherInfo()
public java.lang.String getOtherInfo()
public void setCode(int code)
public void setMessage(java.lang.String message)
public void setContext(java.lang.String context)
public void setOtherInfo(java.lang.String other)
public java.lang.String buildXML()
public DapException buildException()