# GoogleWorkspaceApiException

Typed failure returned for a non-success Google API response.

Class 

`OfficeIMO.GoogleWorkspace`

**Namespace**

`OfficeIMO.GoogleWorkspace`

**Assembly**

`OfficeIMO.GoogleWorkspace`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[GoogleWorkspaceHttpTransport.cs:1192](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1192)

**Base**

`HttpRequestException`

**Implements**

`ISerializable`

**Modifiers**

sealed

Typed failure returned for a non-success Google API response.

## Inheritance

- HttpRequestException
- GoogleWorkspaceApiException

Filter members 

Show inherited

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual Exception GetBaseException()` [#](#method-getbaseexception)

Inherited from Exception

Returns

`Exception`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public virtual void GetObjectData(SerializationInfo info, StreamingContext context)` [#](#method-getobjectdata-serializationinfo-streamingcontext)

Inherited from Exception

`Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")` `EditorBrowsable(1)`

Parameters

**info SerializationInfo required**

**context StreamingContext required**

`public Type GetType()` [#](#method-gettype)

Inherited from Exception

Returns

`Type`

`public override string ToString()` [#](#method-tostring)

Inherited from Exception

Returns

`string`

## Properties

`public string ServiceName { get; }` [#](#property-servicename)

[GoogleWorkspaceHttpTransport.cs:1192](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1192)

Gets the logical Google service that issued the request.

`public HttpMethod Method { get; }` [#](#property-method)

[GoogleWorkspaceHttpTransport.cs:1194](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1194)

Gets the HTTP method used for the failed request.

`public string RequestUri { get; }` [#](#property-requesturi)

[GoogleWorkspaceHttpTransport.cs:1196](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1196)

Gets the sanitized request target used for diagnostics.

`public HttpStatusCode ResponseStatusCode { get; }` [#](#property-responsestatuscode)

[GoogleWorkspaceHttpTransport.cs:1198](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1198)

Gets the non-success HTTP status code.

`public string ResponseBody { get; }` [#](#property-responsebody)

[GoogleWorkspaceHttpTransport.cs:1200](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceHttpTransport.cs#L1200)

Gets the bounded response body returned with the error.

## Inherited Properties

`public HttpRequestError HttpRequestError { get; }` [#](#property-httprequesterror)

Inherited from HttpRequestException

`public HttpStatusCode? StatusCode { get; }` [#](#property-statuscode)

Inherited from HttpRequestException

`public MethodBase? TargetSite { get; }` [#](#property-targetsite)

Inherited from Exception

`public virtual string Message { get; }` [#](#property-message)

Inherited from Exception

`public virtual IDictionary Data { get; }` [#](#property-data)

Inherited from Exception

`public Exception? InnerException { get; }` [#](#property-innerexception)

Inherited from Exception

`public virtual string? HelpLink { get; set; }` [#](#property-helplink)

Inherited from Exception

`public virtual string? Source { get; set; }` [#](#property-source)

Inherited from Exception

`public int HResult { get; set; }` [#](#property-hresult)

Inherited from Exception

`public virtual string? StackTrace { get; }` [#](#property-stacktrace)

Inherited from Exception

<!-- PowerForge markdown artifact sha256:561F7B868CE9628A54C5291348B0716D7463FBC587656DA5591DCEADA446BFE7 -->
