org.codeforamerica.open311.facade.exceptions
Enum APIWrapperException.Error

java.lang.Object
  extended by java.lang.Enum<APIWrapperException.Error>
      extended by org.codeforamerica.open311.facade.exceptions.APIWrapperException.Error
All Implemented Interfaces:
Serializable, Comparable<APIWrapperException.Error>
Enclosing class:
APIWrapperException

public static enum APIWrapperException.Error
extends Enum<APIWrapperException.Error>

Different types of errors.


Enum Constant Summary
DATA_PARSING
           
GEO_REPORT_V2
           
NETWORK_MANAGER
           
NOT_CREATED_BY_A_WRAPPER
           
NOT_SUITABLE_ENDPOINT_FOUND
           
URL_BUILDER
           
 
Method Summary
 String toString()
           
static APIWrapperException.Error valueOf(String name)
          Returns the enum constant of this type with the specified name.
static APIWrapperException.Error[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DATA_PARSING

public static final APIWrapperException.Error DATA_PARSING

NETWORK_MANAGER

public static final APIWrapperException.Error NETWORK_MANAGER

URL_BUILDER

public static final APIWrapperException.Error URL_BUILDER

GEO_REPORT_V2

public static final APIWrapperException.Error GEO_REPORT_V2

NOT_SUITABLE_ENDPOINT_FOUND

public static final APIWrapperException.Error NOT_SUITABLE_ENDPOINT_FOUND

NOT_CREATED_BY_A_WRAPPER

public static final APIWrapperException.Error NOT_CREATED_BY_A_WRAPPER
Method Detail

values

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

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

valueOf

public static APIWrapperException.Error 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 name
NullPointerException - if the argument is null

toString

public String toString()
Overrides:
toString in class Enum<APIWrapperException.Error>


Copyright © 2013 Code for America. All Rights Reserved.