# GoogleWorkspaceFailureDiagnostics

Creates consistent structured exceptions and diagnostics for Workspace export failures.

Class 

`OfficeIMO.GoogleWorkspace`

**Namespace**

`OfficeIMO.GoogleWorkspace`

**Assembly**

`OfficeIMO.GoogleWorkspace`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[GoogleWorkspaceExportException.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceExportException.cs#L82)

**Modifiers**

static

Creates consistent structured exceptions and diagnostics for Workspace export failures.

## Inheritance

- object
- GoogleWorkspaceFailureDiagnostics

Filter members 

Show inherited

## Methods

`public static GoogleWorkspaceExportException CreateAmbiguousMutationFailure(string operationName, GoogleWorkspaceSessionOptions? sessionOptions, TranslationReport report, GoogleWorkspaceAmbiguousMutationException exception)` [#](#member-c3473982d11111c3aa0d5dac)

[GoogleWorkspaceExportException.cs:205](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceExportException.cs#L205)

Creates an actionable export failure for a mutation that must be reconciled before retry.

Parameters

**operationName string required**

**sessionOptions OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions? required**

**report OfficeIMO.GoogleWorkspace.TranslationReport required**

**exception OfficeIMO.GoogleWorkspace.GoogleWorkspaceAmbiguousMutationException required**

Returns

`GoogleWorkspaceExportException`

`public static GoogleWorkspaceExportException CreateApiFailure(string operationName, GoogleWorkspaceSessionOptions? sessionOptions, TranslationReport report, Exception exception)` [#](#method-createapifailure-string-officeimo-googleworkspace-googleworkspacesessionoptions-officeimo-googleworkspace-translationreport-exception)

[GoogleWorkspaceExportException.cs:142](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceExportException.cs#L142)

Records a general Google API failure and returns its structured export exception.

Parameters

**operationName string required**

User-facing name of the export operation.

**sessionOptions OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions? required**

Session diagnostic settings, when available.

**report OfficeIMO.GoogleWorkspace.TranslationReport required**

Report to receive the failure diagnostic.

**exception System.Exception required**

Underlying API or transport exception.

Returns

`GoogleWorkspaceExportException` An API-request export exception.

`public static GoogleWorkspaceExportCanceledException CreateCanceledFailure(string operationName, GoogleWorkspaceSessionOptions? sessionOptions, TranslationReport report, OperationCanceledException exception)` [#](#method-createcanceledfailure-string-officeimo-googleworkspace-googleworkspacesessionoptions-officeimo-googleworkspace-translationreport-operationcanceledexception)

[GoogleWorkspaceExportException.cs:241](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceExportException.cs#L241)

Records caller cancellation and returns an exception that preserves the original cancellation token.

Parameters

**operationName string required**

User-facing name of the export operation.

**sessionOptions OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions? required**

Session diagnostic settings, when available.

**report OfficeIMO.GoogleWorkspace.TranslationReport required**

Report to receive the cancellation diagnostic.

**exception System.OperationCanceledException required**

Original cancellation exception.

Returns

`GoogleWorkspaceExportCanceledException` A structured cancellation exception.

`public static GoogleWorkspaceExportException CreateRequestTimeoutFailure(string operationName, GoogleWorkspaceSessionOptions? sessionOptions, TranslationReport report, TaskCanceledException exception)` [#](#method-createrequesttimeoutfailure-string-officeimo-googleworkspace-googleworkspacesessionoptions-officeimo-googleworkspace-translationreport-threading-tasks-taskcanceledexception)

[GoogleWorkspaceExportException.cs:175](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceExportException.cs#L175)

Records a request timeout and returns its structured export exception.

Parameters

**operationName string required**

User-facing name of the export operation.

**sessionOptions OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions? required**

Session diagnostic settings, when available.

**report OfficeIMO.GoogleWorkspace.TranslationReport required**

Report to receive the timeout diagnostic.

**exception System.Threading.Tasks.TaskCanceledException required**

Timeout exception raised by the request.

Returns

`GoogleWorkspaceExportException` A request-timeout export exception.

`public static GoogleWorkspaceExportException CreateTokenAcquisitionFailure(string operationName, IReadOnlyList<string> scopes, GoogleWorkspaceSession session, TranslationReport report, Exception exception)` [#](#method-createtokenacquisitionfailure-string-collections-generic-ireadonlylist-system-string-officeimo-googleworkspace-googleworkspacesession-officeimo-googleworkspace-translationreport-exception)

[GoogleWorkspaceExportException.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceExportException.cs#L82)

Classifies a credential failure, records it in the report, and returns an export exception.

Parameters

**operationName string required**

User-facing name of the export operation.

**scopes System.Collections.Generic.IReadOnlyList<string> required**

OAuth scopes requested from the credential source.

**session OfficeIMO.GoogleWorkspace.GoogleWorkspaceSession required**

Session whose credential policy was applied.

**report OfficeIMO.GoogleWorkspace.TranslationReport required**

Report to receive the failure diagnostic.

**exception System.Exception required**

Underlying credential exception.

Returns

`GoogleWorkspaceExportException` A domain-delegation or token-acquisition export exception.

## 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:7A111464C64B2F190D983B609E4FC92DC1DFD476118BBDD63478A7ED9A704BC5 -->
