Calendar API v3 (revision 41)



com.google.api.services.calendar.model
Class Error

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.calendar.model.Error
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class Error
extends GenericJson

Model definition for Error.

This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Calendar API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json

Author:
Google, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
Error()
           
 
Method Summary
 Error clone()
           
 String getDomain()
          Domain, or broad category, of the error.
 String getReason()
          Specific reason for the error.
 Error set(String fieldName, Object value)
           
 Error setDomain(String domain)
          Domain, or broad category, of the error.
 Error setReason(String reason)
          Specific reason for the error.
 
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Error

public Error()
Method Detail

getDomain

public String getDomain()
Domain, or broad category, of the error.

Returns:
value or null for none

setDomain

public Error setDomain(String domain)
Domain, or broad category, of the error.

Parameters:
domain - domain or null for none

getReason

public String getReason()
Specific reason for the error. Some of the possible values are: - "groupTooBig" - The group of users requested is too large for a single query. - "tooManyCalendarsRequested" - The number of calendars requested is too large for a single query. - "notFound" - The requested resource was not found. - "internalError" - The API service has encountered an internal error. Additional error types may be added in the future, so clients should gracefully handle additional error statuses not included in this list.

Returns:
value or null for none

setReason

public Error setReason(String reason)
Specific reason for the error. Some of the possible values are: - "groupTooBig" - The group of users requested is too large for a single query. - "tooManyCalendarsRequested" - The number of calendars requested is too large for a single query. - "notFound" - The requested resource was not found. - "internalError" - The API service has encountered an internal error. Additional error types may be added in the future, so clients should gracefully handle additional error statuses not included in this list.

Parameters:
reason - reason or null for none

set

public Error set(String fieldName,
                 Object value)
Overrides:
set in class GenericJson

clone

public Error clone()
Overrides:
clone in class GenericJson