Package com.netflix.zuul.exception
Enum Class OutboundErrorType
- All Implemented Interfaces:
ErrorType
,Serializable
,Comparable<OutboundErrorType>
,Constable
Outbound Error Type
Author: Arthur Gonigberg
Date: November 28, 2017
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Fields inherited from interface com.netflix.zuul.exception.ErrorType
ERROR_TYPE_CONNECT_ERROR_STATUS, ERROR_TYPE_ERROR_STATUS_RESPONSE_STATUS, ERROR_TYPE_NOSERVERS_STATUS, ERROR_TYPE_ORIGIN_CONCURRENCY_EXCEEDED_STATUS, ERROR_TYPE_ORIGIN_RESET_CONN_STATUS, ERROR_TYPE_ORIGIN_SERVER_MAX_CONNS_STATUS, ERROR_TYPE_OTHER_STATUS, ERROR_TYPE_READ_TIMEOUT_STATUS, ERROR_TYPE_SERVICE_UNAVAILABLE_STATUS, PROP_PREFIX
-
Method Summary
Modifier and TypeMethodDescriptioncom.netflix.client.ClientException.ErrorType
int
toString()
static OutboundErrorType
Returns the enum constant of this class with the specified name.static OutboundErrorType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READ_TIMEOUT
-
CONNECT_ERROR
-
SERVICE_UNAVAILABLE
-
ERROR_STATUS_RESPONSE
-
NO_AVAILABLE_SERVERS
-
ORIGIN_SERVER_MAX_CONNS
-
RESET_CONNECTION
-
CANCELLED
-
ORIGIN_CONCURRENCY_EXCEEDED
-
OTHER
-
-
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
-
getStatusCodeToReturn
public int getStatusCodeToReturn()- Specified by:
getStatusCodeToReturn
in interfaceErrorType
-
getStatusCategory
- Specified by:
getStatusCategory
in interfaceErrorType
-
getClientErrorType
public com.netflix.client.ClientException.ErrorType getClientErrorType()- Specified by:
getClientErrorType
in interfaceErrorType
-
toString
- Overrides:
toString
in classEnum<OutboundErrorType>
-