public enum CurRateServiceErrors extends java.lang.Enum<CurRateServiceErrors>
Enum Constant and Description |
---|
CURRENCY_NOT_SUPPORTED
Currency is not supported
|
DATE_TOO_OLD
The date is before 4th of January 1999
|
DB_NOT_CONNECTED
The service cannot connect to the database
|
NO_RATE_FOR_DATE
No rate found for the given date.
|
OPERATION_NOT_SUPPORTED
Operation not supported
|
PARAM_CURRENCY
Currency parameter missing or wrong
|
PARAM_DATE
Date parameter missing or wrong
|
SQL_QUERY_FAILED
The SQL query failed
|
Modifier and Type | Method and Description |
---|---|
static CurRateServiceErrors |
getError(int code)
Returns the CurRateServiceErrors for the given code, or null of code is
supported.
|
int |
getErrorCode()
Returns the error code
|
static CurRateServiceErrors |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CurRateServiceErrors[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CurRateServiceErrors OPERATION_NOT_SUPPORTED
public static final CurRateServiceErrors PARAM_DATE
public static final CurRateServiceErrors PARAM_CURRENCY
public static final CurRateServiceErrors CURRENCY_NOT_SUPPORTED
public static final CurRateServiceErrors NO_RATE_FOR_DATE
public static final CurRateServiceErrors DATE_TOO_OLD
public static final CurRateServiceErrors SQL_QUERY_FAILED
public static final CurRateServiceErrors DB_NOT_CONNECTED
public static CurRateServiceErrors[] values()
for (CurRateServiceErrors c : CurRateServiceErrors.values()) System.out.println(c);
public static CurRateServiceErrors valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CurRateServiceErrors getError(int code)
code
- public int getErrorCode()