Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

GoogleWorkspaceFailureDiagnostics

OfficeIMO.GoogleWorkspace

Namespace
OfficeIMO.GoogleWorkspace
Assembly
OfficeIMO.GoogleWorkspace
Source revision
be6c300e4ab1 with working tree changes
Modifiers
static

Creates consistent structured exceptions and diagnostics for Workspace export failures.

Inheritance

  • object
  • GoogleWorkspaceFailureDiagnostics

Methods

public static GoogleWorkspaceExportException CreateAmbiguousMutationFailure(string operationName, GoogleWorkspaceSessionOptions? sessionOptions, TranslationReport report, GoogleWorkspaceAmbiguousMutationException exception) #

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
public static GoogleWorkspaceExportException CreateApiFailure(string operationName, GoogleWorkspaceSessionOptions? sessionOptions, TranslationReport report, Exception exception) #

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) #

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) #

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) #

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.