Class
GoogleWorkspaceFailureDiagnostics
OfficeIMO.GoogleWorkspace
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
- sessionOptions OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions?
- report OfficeIMO.GoogleWorkspace.TranslationReport
- exception OfficeIMO.GoogleWorkspace.GoogleWorkspaceAmbiguousMutationException
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
- User-facing name of the export operation.
- sessionOptions OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions?
- Session diagnostic settings, when available.
- report OfficeIMO.GoogleWorkspace.TranslationReport
- Report to receive the failure diagnostic.
- exception System.Exception
- Underlying API or transport 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
- User-facing name of the export operation.
- sessionOptions OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions?
- Session diagnostic settings, when available.
- report OfficeIMO.GoogleWorkspace.TranslationReport
- Report to receive the cancellation diagnostic.
- exception System.OperationCanceledException
- Original 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
- User-facing name of the export operation.
- sessionOptions OfficeIMO.GoogleWorkspace.GoogleWorkspaceSessionOptions?
- Session diagnostic settings, when available.
- report OfficeIMO.GoogleWorkspace.TranslationReport
- Report to receive the timeout diagnostic.
- exception System.Threading.Tasks.TaskCanceledException
- Timeout exception raised by the request.
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
- User-facing name of the export operation.
- scopes System.Collections.Generic.IReadOnlyList<string>
- OAuth scopes requested from the credential source.
- session OfficeIMO.GoogleWorkspace.GoogleWorkspaceSession
- Session whose credential policy was applied.
- report OfficeIMO.GoogleWorkspace.TranslationReport
- Report to receive the failure diagnostic.
- exception System.Exception
- Underlying credential exception.