calendar  v3
Public Member Functions | Static Public Member Functions | List of all members
google_calendar_api::Error Class Reference

#include <error.h>

Inheritance diagram for google_calendar_api::Error:

Public Member Functions

 Error (const Json::Value &storage)
 
 Error (Json::Value *storage)
 
virtual ~Error ()
 
const StringPiece GetTypeName () const
 
bool has_domain () const
 
void clear_domain ()
 
const StringPiece get_domain () const
 
void set_domain (const StringPiece &value)
 
bool has_reason () const
 
void clear_reason ()
 
const StringPiece get_reason () const
 
void set_reason (const StringPiece &value)
 

Static Public Member Functions

static ErrorNew ()
 

Detailed Description

No description provided.

Constructor & Destructor Documentation

◆ Error() [1/2]

google_calendar_api::Error::Error ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ Error() [2/2]

google_calendar_api::Error::Error ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~Error()

google_calendar_api::Error::~Error ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_domain()

void google_calendar_api::Error::clear_domain ( )
inline

Clears the 'domain' attribute.

◆ clear_reason()

void google_calendar_api::Error::clear_reason ( )
inline

Clears the 'reason' attribute.

◆ get_domain()

const StringPiece google_calendar_api::Error::get_domain ( ) const
inline

Get the value of the 'domain' attribute.

◆ get_reason()

const StringPiece google_calendar_api::Error::get_reason ( ) const
inline

Get the value of the 'reason' attribute.

◆ GetTypeName()

const StringPiece google_calendar_api::Error::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_calendar_api::Error

◆ has_domain()

bool google_calendar_api::Error::has_domain ( ) const
inline

Determine if the 'domain' attribute was set.

Returns
true if the 'domain' attribute was set.

◆ has_reason()

bool google_calendar_api::Error::has_reason ( ) const
inline

Determine if the 'reason' attribute was set.

Returns
true if the 'reason' attribute was set.

◆ New()

Error * google_calendar_api::Error::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_domain()

void google_calendar_api::Error::set_domain ( const StringPiece &  value)
inline

Change the 'domain' attribute.

Domain, or broad category, of the error.

Parameters
[in]valueThe new value.

◆ set_reason()

void google_calendar_api::Error::set_reason ( const StringPiece &  value)
inline

Change the 'reason' attribute.

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
[in]valueThe new value.

The documentation for this class was generated from the following files: