com.netflix.client
Enum ClientException.ErrorType

java.lang.Object
  extended by java.lang.Enum<ClientException.ErrorType>
      extended by com.netflix.client.ClientException.ErrorType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ClientException.ErrorType>
Enclosing class:
ClientException

public static enum ClientException.ErrorType
extends java.lang.Enum<ClientException.ErrorType>

define your error codes here


Enum Constant Summary
CACHE_MISSING
           
CLIENT_THROTTLED
           
CONFIGURATION
           
CONNECT_EXCEPTION
           
GENERAL
           
NO_ROUTE_TO_HOST_EXCEPTION
           
NUMBEROF_RETRIES_EXEEDED
           
NUMBEROF_RETRIES_NEXTSERVER_EXCEEDED
           
READ_TIMEOUT_EXCEPTION
           
SERVER_THROTTLED
           
SOCKET_TIMEOUT_EXCEPTION
           
UNKNOWN_HOST_EXCEPTION
           
 
Method Summary
static ClientException.ErrorType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ClientException.ErrorType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GENERAL

public static final ClientException.ErrorType GENERAL

CONFIGURATION

public static final ClientException.ErrorType CONFIGURATION

NUMBEROF_RETRIES_EXEEDED

public static final ClientException.ErrorType NUMBEROF_RETRIES_EXEEDED

NUMBEROF_RETRIES_NEXTSERVER_EXCEEDED

public static final ClientException.ErrorType NUMBEROF_RETRIES_NEXTSERVER_EXCEEDED

SOCKET_TIMEOUT_EXCEPTION

public static final ClientException.ErrorType SOCKET_TIMEOUT_EXCEPTION

READ_TIMEOUT_EXCEPTION

public static final ClientException.ErrorType READ_TIMEOUT_EXCEPTION

UNKNOWN_HOST_EXCEPTION

public static final ClientException.ErrorType UNKNOWN_HOST_EXCEPTION

CONNECT_EXCEPTION

public static final ClientException.ErrorType CONNECT_EXCEPTION

CLIENT_THROTTLED

public static final ClientException.ErrorType CLIENT_THROTTLED

SERVER_THROTTLED

public static final ClientException.ErrorType SERVER_THROTTLED

NO_ROUTE_TO_HOST_EXCEPTION

public static final ClientException.ErrorType NO_ROUTE_TO_HOST_EXCEPTION

CACHE_MISSING

public static final ClientException.ErrorType CACHE_MISSING
Method Detail

values

public static ClientException.ErrorType[] 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 (ClientException.ErrorType c : ClientException.ErrorType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ClientException.ErrorType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null