7.4 Google GData Exceptions

Exception

Cause

Status Level

Java.io.IOException

Interrupted I/O operations

Retry

com.google.gdata.util.ServiceException

An error occurred in Google while processing a GData request to the Contacts API

Error

com.google.gdata.util.AuthenticationException

This is a connection exception received from Google after the driver has successfully authenticated.

Retry

com.google.gdata.util.InvalidEntryException

The Google Contact Entry ID requested is invalid

Error

com.google.gdata.util.ResourceNotFoundException

This exception indicates that a query failed to retrieve a valid Contact object

If the exception is a result of a query the status level is Success, since a query that doesn't resolve to an object is not an error. If the exception is a result of requesting a Google object based on an Association value the Status Level will be Error.

com.google.gdata.util.ServiceException with an error description of "Internal Server Error"

The Google GData APIs encountered an undefined server error when processing a request.

Retry

Java.net.MalformedURLException

Indicates a malformed URL was received.

Error

com.google.gdata.data.AppsForYourDomainException

An exception thrown by AppsForYourDomainService. This can occur when the driver is operating on Contact objects. .

The Status Level is dependent on the error code associated with the exception.

Unknown Error

The Contacts API is reporting an unknown error condition. This is routinely a transient condition.

Retry

Entity does not exist

An exception occurred looking up or querying for an object.

Success if the operation was a query operation. Error if the operation was a lookup based on an association value.

Entity Exists

An attempt to create a Contact in Google has failed because an object of that name already exists.

Error