Package com.azure.core.amqp.exception
Enum AmqpResponseCode
- java.lang.Object
-
- java.lang.Enum<AmqpResponseCode>
-
- com.azure.core.amqp.exception.AmqpResponseCode
-
- All Implemented Interfaces:
Serializable,Comparable<AmqpResponseCode>
public enum AmqpResponseCode extends Enum<AmqpResponseCode>
Error response codes returned from AMQP.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTEDACCEPTED.AMBIGUOUSAMBIGUOUS.BAD_GATEWAYBAD_GATEWAY.BAD_REQUESTBAD_REQUEST.CONFLICTCONFLICT.CONTINUECONTINUE.CREATEDCREATED.EXPECTATION_FAILEDEXPECTATION_FAILED.FORBIDDENFORBIDDEN.FOUNDFOUND.GATEWAY_TIMEOUTGATEWAY_TIMEOUT.GONEGONE.HTTP_VERSION_NOT_SUPPORTEDHTTP_VERSION_NOT_SUPPORTED.INTERNAL_SERVER_ERRORINTERNAL_SERVER_ERROR.LENGTH_REQUIREDLENGTH_REQUIRED.METHOD_NOT_ALLOWEDMETHOD_NOT_ALLOWED.MOVEDMOVED.MOVED_PERMANENTLYMOVED_PERMANENTLY.MULTIPLE_CHOICESMULTIPLE_CHOICES.NO_CONTENTNO_CONTENT.NON_AUTHORITATIVE_INFORMATIONNON_AUTHORITATIVE_INFORMATION.NOT_ACCEPTABLENOT_ACCEPTABLE.NOT_FOUNDNOT_FOUND.NOT_IMPLEMENTEDNOT_IMPLEMENTED.NOT_MODIFIEDNOT_MODIFIED.OKOK.PARTIAL_CONTENTPARTIAL_CONTENT.PAYMENT_REQUIREDPAYMENT_REQUIRED.PRECONDITION_FAILEDPRECONDITION_FAILED.PROXY_AUTHENTICATION_REQUIREDPROXY_AUTHENTICATION_REQUIRED.REDIRECTREDIRECT.REDIRECT_KEEP_VERBREDIRECT_KEEP_VERB.REDIRECT_METHODREDIRECT_METHOD.REQUEST_ENTITY_TOO_LARGEREQUEST_ENTITY_TOO_LARGE.REQUEST_TIMEOUTREQUEST_TIMEOUT.REQUEST_URI_TOO_LONGREQUEST_URI_TOO_LONG.REQUESTED_RANGE_NOT_SATISFIABLEREQUESTED_RANGE_NOT_SATISFIABLE.RESET_CONTENTRESET_CONTENT.SEE_OTHERSEE_OTHER.SERVICE_UNAVAILABLESERVICE_UNAVAILABLE.SWITCHING_PROTOCOLSSWITCHING_PROTOCOLS.TEMPORARY_REDIRECTTEMPORARY_REDIRECT.UNAUTHORIZEDUNAUTHORIZED.UNSUPPORTED_MEDIA_TYPEUNSUPPORTED_MEDIA_TYPE.UNUSEDUNUSED.UPGRADE_REQUIREDUPGRADE_REQUIRED.USE_PROXYUSE_PROXY.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AmqpResponseCodefromValue(int value)Creates an AmqpResponseCode for the provided integervalue.intgetValue()Gets the integer value of the AmqpResponseCodestatic AmqpResponseCodevalueOf(String name)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 Detail
-
ACCEPTED
public static final AmqpResponseCode ACCEPTED
ACCEPTED.
-
OK
public static final AmqpResponseCode OK
OK.
-
BAD_REQUEST
public static final AmqpResponseCode BAD_REQUEST
BAD_REQUEST.
-
NOT_FOUND
public static final AmqpResponseCode NOT_FOUND
NOT_FOUND.
-
FORBIDDEN
public static final AmqpResponseCode FORBIDDEN
FORBIDDEN.
-
INTERNAL_SERVER_ERROR
public static final AmqpResponseCode INTERNAL_SERVER_ERROR
INTERNAL_SERVER_ERROR.
-
UNAUTHORIZED
public static final AmqpResponseCode UNAUTHORIZED
UNAUTHORIZED.
-
CONTINUE
public static final AmqpResponseCode CONTINUE
CONTINUE.
-
SWITCHING_PROTOCOLS
public static final AmqpResponseCode SWITCHING_PROTOCOLS
SWITCHING_PROTOCOLS.
-
CREATED
public static final AmqpResponseCode CREATED
CREATED.
-
NON_AUTHORITATIVE_INFORMATION
public static final AmqpResponseCode NON_AUTHORITATIVE_INFORMATION
NON_AUTHORITATIVE_INFORMATION.
-
NO_CONTENT
public static final AmqpResponseCode NO_CONTENT
NO_CONTENT.
-
RESET_CONTENT
public static final AmqpResponseCode RESET_CONTENT
RESET_CONTENT.
-
PARTIAL_CONTENT
public static final AmqpResponseCode PARTIAL_CONTENT
PARTIAL_CONTENT.
-
AMBIGUOUS
public static final AmqpResponseCode AMBIGUOUS
AMBIGUOUS.
-
MULTIPLE_CHOICES
public static final AmqpResponseCode MULTIPLE_CHOICES
MULTIPLE_CHOICES.
-
MOVED
public static final AmqpResponseCode MOVED
MOVED.
-
MOVED_PERMANENTLY
public static final AmqpResponseCode MOVED_PERMANENTLY
MOVED_PERMANENTLY.
-
FOUND
public static final AmqpResponseCode FOUND
FOUND.
-
REDIRECT
public static final AmqpResponseCode REDIRECT
REDIRECT.
-
REDIRECT_METHOD
public static final AmqpResponseCode REDIRECT_METHOD
REDIRECT_METHOD.
-
SEE_OTHER
public static final AmqpResponseCode SEE_OTHER
SEE_OTHER.
-
NOT_MODIFIED
public static final AmqpResponseCode NOT_MODIFIED
NOT_MODIFIED.
-
USE_PROXY
public static final AmqpResponseCode USE_PROXY
USE_PROXY.
-
UNUSED
public static final AmqpResponseCode UNUSED
UNUSED.
-
REDIRECT_KEEP_VERB
public static final AmqpResponseCode REDIRECT_KEEP_VERB
REDIRECT_KEEP_VERB.
-
TEMPORARY_REDIRECT
public static final AmqpResponseCode TEMPORARY_REDIRECT
TEMPORARY_REDIRECT.
-
PAYMENT_REQUIRED
public static final AmqpResponseCode PAYMENT_REQUIRED
PAYMENT_REQUIRED.
-
METHOD_NOT_ALLOWED
public static final AmqpResponseCode METHOD_NOT_ALLOWED
METHOD_NOT_ALLOWED.
-
NOT_ACCEPTABLE
public static final AmqpResponseCode NOT_ACCEPTABLE
NOT_ACCEPTABLE.
-
PROXY_AUTHENTICATION_REQUIRED
public static final AmqpResponseCode PROXY_AUTHENTICATION_REQUIRED
PROXY_AUTHENTICATION_REQUIRED.
-
REQUEST_TIMEOUT
public static final AmqpResponseCode REQUEST_TIMEOUT
REQUEST_TIMEOUT.
-
CONFLICT
public static final AmqpResponseCode CONFLICT
CONFLICT.
-
GONE
public static final AmqpResponseCode GONE
GONE.
-
LENGTH_REQUIRED
public static final AmqpResponseCode LENGTH_REQUIRED
LENGTH_REQUIRED.
-
PRECONDITION_FAILED
public static final AmqpResponseCode PRECONDITION_FAILED
PRECONDITION_FAILED.
-
REQUEST_ENTITY_TOO_LARGE
public static final AmqpResponseCode REQUEST_ENTITY_TOO_LARGE
REQUEST_ENTITY_TOO_LARGE.
-
REQUEST_URI_TOO_LONG
public static final AmqpResponseCode REQUEST_URI_TOO_LONG
REQUEST_URI_TOO_LONG.
-
UNSUPPORTED_MEDIA_TYPE
public static final AmqpResponseCode UNSUPPORTED_MEDIA_TYPE
UNSUPPORTED_MEDIA_TYPE.
-
REQUESTED_RANGE_NOT_SATISFIABLE
public static final AmqpResponseCode REQUESTED_RANGE_NOT_SATISFIABLE
REQUESTED_RANGE_NOT_SATISFIABLE.
-
EXPECTATION_FAILED
public static final AmqpResponseCode EXPECTATION_FAILED
EXPECTATION_FAILED.
-
UPGRADE_REQUIRED
public static final AmqpResponseCode UPGRADE_REQUIRED
UPGRADE_REQUIRED.
-
NOT_IMPLEMENTED
public static final AmqpResponseCode NOT_IMPLEMENTED
NOT_IMPLEMENTED.
-
BAD_GATEWAY
public static final AmqpResponseCode BAD_GATEWAY
BAD_GATEWAY.
-
SERVICE_UNAVAILABLE
public static final AmqpResponseCode SERVICE_UNAVAILABLE
SERVICE_UNAVAILABLE.
-
GATEWAY_TIMEOUT
public static final AmqpResponseCode GATEWAY_TIMEOUT
GATEWAY_TIMEOUT.
-
HTTP_VERSION_NOT_SUPPORTED
public static final AmqpResponseCode HTTP_VERSION_NOT_SUPPORTED
HTTP_VERSION_NOT_SUPPORTED.
-
-
Method Detail
-
values
public static AmqpResponseCode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AmqpResponseCode c : AmqpResponseCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AmqpResponseCode valueOf(String name)
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
public static AmqpResponseCode fromValue(int value)
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
nullif no matching response code is found.
-
getValue
public int getValue()
Gets the integer value of the AmqpResponseCode- Returns:
- The integer value of the AmqpResponseCode
-
-