SearchError (API Reference)
Enum Class SearchError
- All Implemented Interfaces:
Serializable,Comparable<SearchError>,Constable
Specifies possible errors that may result from a search query.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSearch operation is not authenticated.Bad network requestCredentials exceeded the allowed requests limit.Filter is emptyFilter is too long, max.The credentials given do not provide access to the resource requested.Network request error.Box or circle area of query is invalidCorridor area polyline size is less than 2 pointsCustom options are set in an invalid format in the queryLight truck class is passed in the filterUrl is invalidDownloaded regions missingLayerConfiguration.Feature.OFFLINE_SEARCH_GLOBALfeature.Offline map data is incomplete for the requested operation.Should be in the range [1, 100].No results found.The device does not have an internet connection.Operation cancelled.Operation failed due to an internal error.Error while parsing response data.Proxy is not authenticated.Proxy server unreachable.Empty queryQuery is too long, max.Server unreachable.The request timed out. -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchErrorReturns the enum constant of this class with the specified name.static SearchError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTHENTICATION_FAILED
Search operation is not authenticated. Check your credentials.
-
MAX_ITEMS_OUT_OF_RANGE
Should be in the range [1, 100].
-
PARSING_ERROR
Error while parsing response data.
-
NO_RESULTS_FOUND
No results found.
-
HTTP_ERROR
Network request error.
-
SERVER_UNREACHABLE
Server unreachable.
-
FORBIDDEN
The credentials given do not provide access to the resource requested.
-
EXCEEDED_USAGE_LIMIT
Credentials exceeded the allowed requests limit.
-
OPERATION_FAILED
Operation failed due to an internal error.
-
OPERATION_CANCELLED
Operation cancelled.
-
TIMED_OUT
The request timed out.
-
OFFLINE
The device does not have an internet connection.
-
QUERY_TOO_LONG
Query is too long, max. size is 300 characters.
-
FILTER_TOO_LONG
Filter is too long, max. size is 300 characters.
-
PROXY_AUTHENTICATION_FAILED
Proxy is not authenticated. Check your proxy credentials.
-
PROXY_SERVER_UNREACHABLE
Proxy server unreachable.
-
QUERY_EMPTY
Empty query
-
INVALID_AREA
Box or circle area of query is invalid
-
FILTER_EMPTY
Filter is empty
-
INVALID_CORRIDOR_POLYLINE
Corridor area polyline size is less than 2 points
-
INVALID_URL
Url is invalid
-
INVALID_CUSTOM_OPTION_FORMAT
Custom options are set in an invalid format in the query
-
INVALID_TRUCK_CLASS
Light truck class is passed in the filter
-
BAD_REQUEST
Bad network request
-
MAP_NOT_READY
Offline map data is incomplete for the requested operation. Regions are not downloaded or are in the
Pendingstate.Note: This is an alpha 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.
-
LAYERS_NOT_DOWNLOADED
Downloaded regions missing
LayerConfiguration.Feature.OFFLINE_SEARCH_GLOBALfeature. Update or redownload regions with enabled feature.Note: This is an alpha 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.
-
-
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
-