Enum FaultInjectionServerErrorType
java.lang.Object
java.lang.Enum<FaultInjectionServerErrorType>
com.azure.cosmos.test.faultinjection.FaultInjectionServerErrorType
- All Implemented Interfaces:
Serializable
,Comparable<FaultInjectionServerErrorType>
,java.lang.constant.Constable
Fault injection server error type.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionsimulate high channel acquisition, when it is over connection timeout, can simulate connectionTimeoutException410 from server500 from server410-1008 from server404-1002 from serverResponse delay, when it is over request timeout, can simulate transit timeout449 from server408 from server429 from server -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static FaultInjectionServerErrorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
GONE
410 from server -
RETRY_WITH
449 from server -
INTERNAL_SERVER_ERROR
500 from server -
TOO_MANY_REQUEST
429 from server -
READ_SESSION_NOT_AVAILABLE
404-1002 from server -
TIMEOUT
408 from server -
PARTITION_IS_MIGRATING
410-1008 from server -
RESPONSE_DELAY
Response delay, when it is over request timeout, can simulate transit timeout -
CONNECTION_DELAY
simulate high channel acquisition, when it is over connection timeout, can simulate connectionTimeoutException
-
-
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
-