# GoogleWorkspaceApiErrorFormatter

Extracts concise diagnostic text from OAuth and Google API error payloads.

Class 

`OfficeIMO.GoogleWorkspace`

**Namespace**

`OfficeIMO.GoogleWorkspace`

**Assembly**

`OfficeIMO.GoogleWorkspace`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[GoogleWorkspaceApiErrorFormatter.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceApiErrorFormatter.cs#L10)

**Modifiers**

static

Extracts concise diagnostic text from OAuth and Google API error payloads.

## Inheritance

- object
- GoogleWorkspaceApiErrorFormatter

Filter members 

Show inherited

## Methods

`public static string? Format(string responseBody)` [#](#method-format-string)

[GoogleWorkspaceApiErrorFormatter.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceApiErrorFormatter.cs#L10)

Formats a supported JSON error payload for inclusion in an exception message.

Parameters

**responseBody string required**

Raw response body returned by Google.

Returns

`string?` A concise error description, or null for empty, invalid, or unrecognized payloads.

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from object

Returns

`int`

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

Inherited from object

Returns

`Type`

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

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:EFF9B50900EFA5FA65AF7B7CC89E668496B2DD42ABD18C3A6A8B283FFB0742B4 -->
