weather_service.weatherprovider
Enum WeatherError.ErrorTypes
java.lang.Object
java.lang.Enum<WeatherError.ErrorTypes>
weather_service.weatherprovider.WeatherError.ErrorTypes
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<WeatherError.ErrorTypes>
- Enclosing class:
- WeatherError
public static enum WeatherError.ErrorTypes
- extends java.lang.Enum<WeatherError.ErrorTypes>
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 |
NO_ERROR_TYPE_SET
public static final WeatherError.ErrorTypes NO_ERROR_TYPE_SET
UNKNOWN_ERROR
public static final WeatherError.ErrorTypes UNKNOWN_ERROR
NO_LOCATION_PROVIDED_ERROR
public static final WeatherError.ErrorTypes NO_LOCATION_PROVIDED_ERROR
INVALID_LOCATION_PROVIDED_ERROR
public static final WeatherError.ErrorTypes INVALID_LOCATION_PROVIDED_ERROR
INVALID_PARTNERID_ERROR
public static final WeatherError.ErrorTypes INVALID_PARTNERID_ERROR
INVALID_PRODUCT_CODE
public static final WeatherError.ErrorTypes INVALID_PRODUCT_CODE
INVALID_LICENSE_KEY
public static final WeatherError.ErrorTypes INVALID_LICENSE_KEY
WEATHER_PARSING_ERROR
public static final WeatherError.ErrorTypes WEATHER_PARSING_ERROR
INVALID_WEATHER_REPORT_VERSION
public static final WeatherError.ErrorTypes INVALID_WEATHER_REPORT_VERSION
SEARCH_LOCATIONS_PARSING_ERROR
public static final WeatherError.ErrorTypes SEARCH_LOCATIONS_PARSING_ERROR
INVALID_SEARCH_VERSION
public static final WeatherError.ErrorTypes INVALID_SEARCH_VERSION
values
public static WeatherError.ErrorTypes[] 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 (WeatherError.ErrorTypes c : WeatherError.ErrorTypes.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static WeatherError.ErrorTypes 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