EVSearchError (API Reference)
Enum Class EVSearchError
- All Implemented Interfaces:
Serializable,Comparable<EVSearchError>,Constable
Specifies possible errors that EVSearchEngine may report.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors.
Related APIs may change for new releases without a deprecation process.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEVCP3 operation is not authenticated.Something wrong or missing in the request.Empty list of IDs passed.Credentials exceeded the allowed requests limit.A general network request error.Generic internal error.At least one empty or invalid ID passed.No results found.The device has no internet connection.The request was cancelled (usually by the user).Search operation failed due to some reason.EVCP3 backend returns result with unexpected json schema.Proxy is not authenticated.Proxy server unreachable.EVCP3 server is unreachable.The request timed out. -
Method Summary
Modifier and TypeMethodDescriptionstatic EVSearchErrorReturns the enum constant of this class with the specified name.static EVSearchError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMPTY_IDS
Empty list of IDs passed.
-
INVALID_ID
At least one empty or invalid ID passed.
-
BAD_REQUEST
Something wrong or missing in the request.
-
PARSING_ERROR
EVCP3 backend returns result with unexpected json schema.
-
INTERNAL_ERROR
Generic internal error.
-
SERVER_UNREACHABLE
EVCP3 server is unreachable.
-
HTTP_ERROR
A general network request error.
-
AUTHENTICATION_FAILED
EVCP3 operation is not authenticated. Check your credentials.
-
EXCEEDED_USAGE_LIMIT
Credentials exceeded the allowed requests limit.
-
TIMED_OUT
The request timed out.
-
OFFLINE
The device has no internet connection.
-
OPERATION_CANCELLED
The request was cancelled (usually by the user).
-
PROXY_AUTHENTICATION_FAILED
Proxy is not authenticated. Check your proxy credentials.
-
PROXY_SERVER_UNREACHABLE
Proxy server unreachable.
-
NO_RESULTS_FOUND
No results found.
-
OPERATION_FAILED
Search operation failed due to some reason.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-