Google.Maps.Event.ErrorArgs

The base class for error arguments.

Summary

Inheritance

Inherits from: EventArgs
Direct Known Subclasses:Google.Maps.Event.MapLoadErrorArgs

Public types

DetailedErrorEnum{
  None = 0,
  UnsupportedClientVersion = 1,
  ClientError = 2,
  NetworkError = 3,
  InvalidRequest,
  PermissionDenied,
  NotFound,
  OutOfQuota,
  ServerError,
  Unknown
}
enum
Contains a set of values that specify additional error information.

Public attributes

DetailedErrorCode
Additional information about the cause of the error.
HttpResponseCode
readonly long
The HTTP response code, or 0 if there was no HTTP response.
Message
readonly string
Error message.

Public functions

ToString()
override string
A string representation of the error. This includes the detailed error code, the HTTP response code, and the error message.

Public types

DetailedErrorEnum

 DetailedErrorEnum

Contains a set of values that specify additional error information.

Properties
ClientError

The request to the Semantic Tile API succeeded, but an error occurred on the client.

InvalidRequest

The request sent from the SDK to the Semantic Tile API was invalid.

NetworkError

An error occurred at the network level. The SDK did not receive a response from the Semantic Tile API.

Common causes are:

  • Loss of network connection. Consider checking Application.internetReachability.
  • The request exceeded its deadline. Consider increasing MapLoadErrorArgs.TimeoutSeconds.

None

No additional error information.

NotFound

Nothing exists at the URL that you used to query the Semantic Tile API. Verify the value of MapsService.FeatureTileApiUrlFormat and MapsService.TerrainTileApiUrlFormat.

OutOfQuota

You exceeded the quota for the Semantic Tile API.

PermissionDenied

The API key does not have permission to make requests to the Semantic Tile API. Ensure the following:

  • The value of MapsService.ApiKey is valid.
  • The Semantic Tile API is enabled.
  • A valid billing account is set up.
  • The API key restrictions are met.

ServerError

An error occurred at the Semantic Tile API server.

Unknown

An unknown error occurred. Check ErrorArgs.Message for further details.

UnsupportedClientVersion

This version of the SDK is unsupported, possibly in combination with this API key. Note: You should provide an upgrade path and/or a new API key.

Public attributes

DetailedErrorCode

readonly DetailedErrorEnum DetailedErrorCode

Additional information about the cause of the error.

HttpResponseCode

readonly long HttpResponseCode

The HTTP response code, or 0 if there was no HTTP response.

Note: This value can be 200 when the HTTP request succeeds, but contains unexpected content.

Message

readonly string Message

Error message.

Public functions

ToString

override string ToString()

A string representation of the error. This includes the detailed error code, the HTTP response code, and the error message.