Package com.azure.core.amqp.exception
Enum AmqpResponseCode
- All Implemented Interfaces:
Serializable
,Comparable<AmqpResponseCode>
,java.lang.constant.Constable
Error response codes returned from AMQP.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionACCEPTED.AMBIGUOUS.BAD_GATEWAY.BAD_REQUEST.CONFLICT.CONTINUE.CREATED.EXPECTATION_FAILED.FORBIDDEN.FOUND.GATEWAY_TIMEOUT.GONE.HTTP_VERSION_NOT_SUPPORTED.INTERNAL_SERVER_ERROR.LENGTH_REQUIRED.METHOD_NOT_ALLOWED.MOVED.MOVED_PERMANENTLY.MULTIPLE_CHOICES.NO_CONTENT.NON_AUTHORITATIVE_INFORMATION.NOT_ACCEPTABLE.NOT_FOUND.NOT_IMPLEMENTED.NOT_MODIFIED.OK.PARTIAL_CONTENT.PAYMENT_REQUIRED.PRECONDITION_FAILED.PROXY_AUTHENTICATION_REQUIRED.REDIRECT.REDIRECT_KEEP_VERB.REDIRECT_METHOD.REQUEST_ENTITY_TOO_LARGE.REQUEST_TIMEOUT.REQUEST_URI_TOO_LONG.REQUESTED_RANGE_NOT_SATISFIABLE.RESET_CONTENT.SEE_OTHER.SERVICE_UNAVAILABLE.SWITCHING_PROTOCOLS.TEMPORARY_REDIRECT.UNAUTHORIZED.UNSUPPORTED_MEDIA_TYPE.UNUSED.UPGRADE_REQUIRED.USE_PROXY. -
Method Summary
Modifier and TypeMethodDescriptionstatic AmqpResponseCode
fromValue
(int value) Creates an AmqpResponseCode for the provided integervalue
.int
getValue()
Gets the integer value of the AmqpResponseCodestatic AmqpResponseCode
Returns the enum constant of this type with the specified name.static AmqpResponseCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACCEPTED
ACCEPTED. -
OK
OK. -
BAD_REQUEST
BAD_REQUEST. -
NOT_FOUND
NOT_FOUND. -
FORBIDDEN
FORBIDDEN. -
INTERNAL_SERVER_ERROR
INTERNAL_SERVER_ERROR. -
UNAUTHORIZED
UNAUTHORIZED. -
CONTINUE
CONTINUE. -
SWITCHING_PROTOCOLS
SWITCHING_PROTOCOLS. -
CREATED
CREATED. -
NON_AUTHORITATIVE_INFORMATION
NON_AUTHORITATIVE_INFORMATION. -
NO_CONTENT
NO_CONTENT. -
RESET_CONTENT
RESET_CONTENT. -
PARTIAL_CONTENT
PARTIAL_CONTENT. -
AMBIGUOUS
AMBIGUOUS. -
MULTIPLE_CHOICES
MULTIPLE_CHOICES. -
MOVED
MOVED. -
MOVED_PERMANENTLY
MOVED_PERMANENTLY. -
FOUND
FOUND. -
REDIRECT
REDIRECT. -
REDIRECT_METHOD
REDIRECT_METHOD. -
SEE_OTHER
SEE_OTHER. -
NOT_MODIFIED
NOT_MODIFIED. -
USE_PROXY
USE_PROXY. -
UNUSED
UNUSED. -
REDIRECT_KEEP_VERB
REDIRECT_KEEP_VERB. -
TEMPORARY_REDIRECT
TEMPORARY_REDIRECT. -
PAYMENT_REQUIRED
PAYMENT_REQUIRED. -
METHOD_NOT_ALLOWED
METHOD_NOT_ALLOWED. -
NOT_ACCEPTABLE
NOT_ACCEPTABLE. -
PROXY_AUTHENTICATION_REQUIRED
PROXY_AUTHENTICATION_REQUIRED. -
REQUEST_TIMEOUT
REQUEST_TIMEOUT. -
CONFLICT
CONFLICT. -
GONE
GONE. -
LENGTH_REQUIRED
LENGTH_REQUIRED. -
PRECONDITION_FAILED
PRECONDITION_FAILED. -
REQUEST_ENTITY_TOO_LARGE
REQUEST_ENTITY_TOO_LARGE. -
REQUEST_URI_TOO_LONG
REQUEST_URI_TOO_LONG. -
UNSUPPORTED_MEDIA_TYPE
UNSUPPORTED_MEDIA_TYPE. -
REQUESTED_RANGE_NOT_SATISFIABLE
REQUESTED_RANGE_NOT_SATISFIABLE. -
EXPECTATION_FAILED
EXPECTATION_FAILED. -
UPGRADE_REQUIRED
UPGRADE_REQUIRED. -
NOT_IMPLEMENTED
NOT_IMPLEMENTED. -
BAD_GATEWAY
BAD_GATEWAY. -
SERVICE_UNAVAILABLE
SERVICE_UNAVAILABLE. -
GATEWAY_TIMEOUT
GATEWAY_TIMEOUT. -
HTTP_VERSION_NOT_SUPPORTED
HTTP_VERSION_NOT_SUPPORTED.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromValue
Creates an AmqpResponseCode for the provided integervalue
.- Parameters:
value
- The integer value representing an error code.- Returns:
- The corresponding AmqpResponseCode for the provided value, or
null
if no matching response code is found.
-
getValue
public int getValue()Gets the integer value of the AmqpResponseCode- Returns:
- The integer value of the AmqpResponseCode
-