Enum Class RequestError
- All Implemented Interfaces:
Serializable,Comparable<RequestError>,Constable
Known error types.
Each type can throw a corresponding RequestException.
- Author:
- Fabio Simeoni
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAn error raised by managed applications.The error raised when requests are made to failed applications.The error raised when requests are made to stopped applications.The error raised when requests require illegal resource state transitions.The error raised when requests carry an unsupported media type.The error raised when requests are genrically invalid.The error raised when requests are made with unsupported HTTP methods.The error raised when requests request an unsupported media type.The error raised when requests are made to unknown resources. -
Method Summary
Modifier and TypeMethodDescriptionintcode()voidfire()voidvoidvoidmessage()toException(String msg) toException(String msg, Throwable cause) toException(Throwable cause) static RequestErrorReturns the enum constant of this class with the specified name.static RequestError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
application_failed_error
The error raised when requests are made to failed applications. -
resource_notfound_error
The error raised when requests are made to unknown resources. -
illegal_state_error
The error raised when requests require illegal resource state transitions. -
method_unsupported_error
The error raised when requests are made with unsupported HTTP methods. -
invalid_request_error
The error raised when requests are genrically invalid. -
request_not_authorized_error
-
internal_server_error
-
incoming_contenttype_unsupported_error
The error raised when requests carry an unsupported media type. -
outgoing_contenttype_unsupported_error
The error raised when requests request an unsupported media type. -
application_error
An error raised by managed applications.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
code
public int code() -
message
-
fire
public void fire() -
fire
-
fire
-
fire
-
toException
-
toException
-
toException
-
toException
-