org.codeforamerica.open311.facade.exceptions
Enum APIWrapperException.Error
java.lang.Object
java.lang.Enum<APIWrapperException.Error>
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.
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
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.