Class GoogleApiException (1.69.0)

 public class GoogleApiException : Exception, ISerializable 

Represents an exception thrown by an API Service.

Inheritance

object > Exception > GoogleApiException

Implements

ISerializable

Namespace

Google

Assembly

Google.Apis.Core.dll

Constructors

GoogleApiException(string)

 public GoogleApiException(string serviceName) 

Creates an API Service exception with no message.

Parameter
Name
Description
serviceName
Remarks

Message may still contain useful information if the Error and/or HttpStatusCode properties are set.

GoogleApiException(string, string)

 public GoogleApiException(string serviceName, string message) 

Creates an API Service exception.

Parameters
Name
Description
serviceName
message

GoogleApiException(string, string, Exception)

 public GoogleApiException(string serviceName, string message, Exception inner) 

Creates an API Service exception.

Parameters
Name
Description
serviceName
message
inner

Properties

Error

 public RequestError Error { get; set; } 

The Error which was returned from the server, or null if unavailable.

Property Value
Type
Description

HttpStatusCode

 public HttpStatusCode HttpStatusCode { get; set; } 

The HTTP status code which was returned along with this error, or 0 if unavailable.

Property Value
Type
Description

Message

 public override string Message { get; } 
Property Value
Type
Description
Overrides

ServiceName

 public string ServiceName { get; } 

Gets the service name which related to this exception.

Property Value
Type
Description

Methods

ToString()

 public override string ToString() 

Returns a summary of this exception.

Returns
Type
Description

A summary of this exception.

Overrides

Extension Method

Design a Mobile Site
View Site in Mobile | Classic
Share by: