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 |
USER_SYNTAX_ERROR
Some part of the (possibly user supplied) syntax of the BES request was
incorrrect and could not be handled.
|
CANNOT_READ_FILE, MALFORMED_EXPR, NO_AUTHORIZATION, NO_SUCH_FILE, NO_SUCH_VARIABLE, UNDEFINED_ERROR, UNKNOWN_ERROR
Constructor and Description |
---|
BESError(org.jdom.Document error) |
BESError(org.jdom.Document error,
MediaType mt) |
BESError(org.jdom.Element error) |
BESError(org.jdom.Element error,
MediaType mt) |
BESError(java.io.InputStream is) |
BESError(java.io.InputStream is,
MediaType mt) |
BESError(java.lang.String msg) |
BESError(java.lang.String msg,
java.lang.Exception e) |
BESError(java.lang.String msg,
java.lang.Exception e,
MediaType mt) |
BESError(java.lang.String msg,
MediaType mt) |
BESError(java.lang.String msg,
java.lang.Throwable cause) |
BESError(java.lang.String msg,
java.lang.Throwable cause,
MediaType mt) |
BESError(java.lang.Throwable cause) |
BESError(java.lang.Throwable cause,
MediaType mt) |
Modifier and Type | Method and Description |
---|---|
boolean |
forbidden() |
int |
getHttpStatus() |
MediaType |
getReturnMediaType() |
boolean |
internal() |
boolean |
notFound() |
int |
sendErrorResponse(java.lang.String systemPath,
java.lang.String context,
javax.servlet.http.HttpServletResponse response) |
void |
setReturnMediaType(MediaType mt) |
boolean |
syntax() |
anyExceptionHandler, getDAP2Error, getDAP32Error, getErrorCode, getErrorMessage, getMessage, print, print, setErrorCode, setErrorMessage
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 BESError(org.jdom.Document error)
public BESError(org.jdom.Document error, MediaType mt)
public BESError(org.jdom.Element error)
public BESError(org.jdom.Element error, MediaType mt)
public BESError(java.io.InputStream is)
public BESError(java.io.InputStream is, MediaType mt)
public BESError(java.lang.String msg)
public BESError(java.lang.String msg, MediaType mt)
public BESError(java.lang.String msg, java.lang.Exception e)
public BESError(java.lang.String msg, java.lang.Exception e, MediaType mt)
public BESError(java.lang.String msg, java.lang.Throwable cause)
public BESError(java.lang.String msg, java.lang.Throwable cause, MediaType mt)
public BESError(java.lang.Throwable cause)
public BESError(java.lang.Throwable cause, MediaType mt)
public void setReturnMediaType(MediaType mt)
public MediaType getReturnMediaType()
public boolean notFound()
public boolean forbidden()
public boolean syntax()
public boolean internal()
public int getHttpStatus()
public int sendErrorResponse(java.lang.String systemPath, java.lang.String context, javax.servlet.http.HttpServletResponse response) throws java.io.IOException
response
- java.io.IOException