public enum RequestError extends Enum<RequestError>
Each type can throw a corresponding RequestException.
| Enum Constant and Description |
|---|
application_error
An error raised by managed applications.
|
application_failed_error
The error raised when requests are made to failed applications.
|
application_unavailable_error
The error raised when requests are made to stopped applications.
|
illegal_state_error
The error raised when requests require illegal resource state transitions.
|
incoming_contenttype_unsupported_error
The error raised when requests carry an unsupported media type.
|
internal_server_error |
invalid_request_error
The error raised when requests are genrically invalid.
|
method_unsupported_error
The error raised when requests are made with unsupported HTTP methods.
|
outgoing_contenttype_unsupported_error
The error raised when requests request an unsupported media type.
|
request_not_authorized_error |
resource_notfound_error
The error raised when requests are made to unknown resources.
|
| Modifier and Type | Method and Description |
|---|---|
int |
code() |
void |
fire() |
void |
fire(String msg) |
void |
fire(String msg,
Throwable cause) |
void |
fire(Throwable cause) |
String |
message() |
RequestException |
toException() |
RequestException |
toException(String msg) |
RequestException |
toException(String msg,
Throwable cause) |
RequestException |
toException(Throwable cause) |
static RequestError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RequestError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestError application_failed_error
public static final RequestError application_unavailable_error
public static final RequestError resource_notfound_error
public static final RequestError illegal_state_error
public static final RequestError method_unsupported_error
public static final RequestError invalid_request_error
public static final RequestError request_not_authorized_error
public static final RequestError internal_server_error
public static final RequestError incoming_contenttype_unsupported_error
public static final RequestError outgoing_contenttype_unsupported_error
public static final RequestError application_error
public static RequestError[] values()
for (RequestError c : RequestError.values()) System.out.println(c);
public static RequestError valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic int code()
public String message()
public void fire()
public void fire(String msg)
public void fire(Throwable cause)
public RequestException toException()
public RequestException toException(String msg)
public RequestException toException(Throwable cause)
public RequestException toException(String msg, Throwable cause)
Copyright © 2015. All Rights Reserved.