Class GoogleApiException (1.50.0)

public class GoogleApiException : Exception

Represents an exception thrown by an API Service.

Inheritance

Object > GoogleApiException

Namespace

Google

Assembly

Google.Apis.Core.dll

Constructors

GoogleApiException(String, String)

public GoogleApiException(string serviceName, string message)

Creates an API Service exception.

Parameters
NameDescription
serviceNameString
messageString

GoogleApiException(String, String, Exception)

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

Creates an API Service exception.

Parameters
NameDescription
serviceNameString
messageString
innerException

Properties

Error

public RequestError Error { get; set; }

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

Property Value
TypeDescription
RequestError

HttpStatusCode

public HttpStatusCode HttpStatusCode { get; set; }

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

Property Value
TypeDescription
HttpStatusCode

ServiceName

public string ServiceName { get; }

Gets the service name which related to this exception.

Property Value
TypeDescription
String

Methods

ToString()

public override string ToString()

Returns a summary of this exception.

Returns
TypeDescription
String

A summary of this exception.

Extension Method