Calendar API v3 (revision 41)
com.google.api.services.calendar.model
Class Error
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
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 classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
|
Constructor Summary |
Error()
|
Error
public Error()
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