public class BESError extends OPeNDAPException
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BES_ERROR |
static int |
FORBIDDEN_ERROR
The user (or possibly the BES) does not have the required permissions
to access the requested resource.
|
static int |
INTERNAL_ERROR
Bad Things happened in the BES.
|
static int |
INTERNAL_FATAL_ERROR
Really Bad Things happened in the BES.
|
static int |
INVALID_ERROR
The error is of an known type.
|
static int |
NOT_FOUND_ERROR
The BES could not find the requested resource.
|
static int |
TIME_OUT
The BES timed out.
|
static int |
USER_SYNTAX_ERROR
Some part of the (possibly user supplied) syntax of the BES request was
incorrrect and could not be handled.
|
_systemPath, ERROR_RESPONSE_MEDIA_TYPE_KEY, UNDEFINED_ERROR
Constructor and Description |
---|
BESError(org.jdom.Document error) |
BESError(org.jdom.Document error,
MediaType mt) |
BESError(java.io.InputStream is) |
BESError(java.io.InputStream is,
MediaType mt) |
BESError(java.lang.String error) |
BESError(java.lang.String error,
MediaType mt) |
Modifier and Type | Method and Description |
---|---|
int |
convertBesErrorCodeToHttpStatusCode() |
boolean |
forbidden() |
int |
getBesErrorCode()
Returns the error code.
|
org.jdom.Document |
getErrorDoc() |
boolean |
internal() |
boolean |
notFound() |
void |
setBesErrorCode(int code)
Sets the error code.
|
boolean |
syntax() |
anyExceptionHandler, getAndClearCachedErrorMessage, getDap2Error, getHttpStatusCode, getMessage, getResponseMediaType, print, print, sendAsCsvError, sendAsDap2Error, sendAsDap4Error, sendAsHtmlErrorPage, sendAsJsonError, sendHttpErrorResponse, setCachedErrorMessage, setErrorMessage, setHttpStatusCode, setResponseMediaType, setSystemPath
public static final java.lang.String BES_ERROR
public static final int INVALID_ERROR
public static final int INTERNAL_ERROR
public static final int INTERNAL_FATAL_ERROR
public static final int USER_SYNTAX_ERROR
public static final int FORBIDDEN_ERROR
public static final int NOT_FOUND_ERROR
public static final int TIME_OUT
public BESError(org.jdom.Document error)
public BESError(org.jdom.Document error, MediaType mt)
public BESError(java.io.InputStream is)
public BESError(java.io.InputStream is, MediaType mt)
public BESError(java.lang.String error)
public BESError(java.lang.String error, MediaType mt)
public final int getBesErrorCode()
public final void setBesErrorCode(int code)
code
- the error code.public boolean notFound()
public boolean forbidden()
public boolean syntax()
public boolean internal()
public int convertBesErrorCodeToHttpStatusCode()
public org.jdom.Document getErrorDoc()