Enum Class HandlerErrorCode
- All Implemented Interfaces:
Serializable,Comparable<HandlerErrorCode>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionthe customer has insufficient permissions to perform this action (Terminal)the specified resource already existed prior to the execution of the handler.an exception from the downstream service that does not map to any other error codes (Terminal)an internal error occurred within the handler, such as an NPE, etc.an unexpected error occurred within the handler, such as an NPE, etc.the customer's provided credentials were invalid (Terminal)a generic exception caused by invalid input from the customer (Terminal)typeConfiguration is null or required typeConfiguration property is nullthe request was unable to be completed due to networking issues, such as failure to receive a response from the server (Retriable)the specified target of the Hook is in a non-compliant state.the specified resource does not exist, or is in a terminal, inoperable, and irrecoverable state (Terminal)the downstream resource failed to complete all of its ready state checks (Terminal)the customer tried perform an update to a property that is CreateOnly.the resource is temporarily unable to be acted upon; for example, if the resource is currently undergoing an operation and cannot be acted upon until that operation is finished (Retriable)the downstream service returned an internal error, typically with a 5XX HTTP Status code (Retriable)a non-transient resource limit was reached on the service side (Terminal)the request was throttled by the downstream service (Retriable)the customer has insufficient permissions to perform tagging create/update/delete/read action (Terminal)the Hook has returned a failure for an Unknown reason.The specified target in the hook request is not supported. -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerErrorCodeReturns the enum constant of this class with the specified name.static HandlerErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NotUpdatable
the customer tried perform an update to a property that is CreateOnly. Only applicable to Update Handler (Terminal) -
InvalidRequest
a generic exception caused by invalid input from the customer (Terminal) -
AccessDenied
the customer has insufficient permissions to perform this action (Terminal) -
UnauthorizedTaggingOperation
the customer has insufficient permissions to perform tagging create/update/delete/read action (Terminal) -
InvalidCredentials
the customer's provided credentials were invalid (Terminal) -
AlreadyExists
the specified resource already existed prior to the execution of the handler. Only applicable to Create Handler (Terminal) Handlers MUST return this error when duplicate creation requests are received. -
NotFound
the specified resource does not exist, or is in a terminal, inoperable, and irrecoverable state (Terminal) -
ResourceConflict
the resource is temporarily unable to be acted upon; for example, if the resource is currently undergoing an operation and cannot be acted upon until that operation is finished (Retriable) -
Throttling
the request was throttled by the downstream service (Retriable) -
ServiceLimitExceeded
a non-transient resource limit was reached on the service side (Terminal) -
NotStabilized
the downstream resource failed to complete all of its ready state checks (Terminal) -
GeneralServiceException
an exception from the downstream service that does not map to any other error codes (Terminal) -
ServiceInternalError
the downstream service returned an internal error, typically with a 5XX HTTP Status code (Retriable) -
NetworkFailure
the request was unable to be completed due to networking issues, such as failure to receive a response from the server (Retriable) -
InternalFailure
an unexpected error occurred within the handler, such as an NPE, etc. (Terminal) -
InvalidTypeConfiguration
typeConfiguration is null or required typeConfiguration property is null -
HandlerInternalFailure
an internal error occurred within the handler, such as an NPE, etc. (Terminal) -
NonCompliant
the specified target of the Hook is in a non-compliant state. Only applicable to Hook type handlers (Terminal) Hook Handlers return this error when the hook's compliance checks have failed. -
UnsupportedTarget
The specified target in the hook request is not supported. Applicable when hook has wildcard targets. Hook wildcard may be matched to target that hook did not support at time of registration -
Unknown
the Hook has returned a failure for an Unknown reason. Only applicable to Hook type handlers (terminal) Hook Handlers can return this when a hook has failed for a reason other than non-compliance
-
-
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
-