API Reference
Class
GoogleWorkspaceFailureDiagnostics
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) #Returns:
GoogleWorkspaceExportExceptionCreates an actionable export failure for a mutation that must be reconciled before retry.
Parameters
- operationName System.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) #Returns:
GoogleWorkspaceExportExceptionRecords a general Google API failure and returns its structured export exception.
Parameters
- operationName System.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.
Returns
An API-request export exception.
public static GoogleWorkspaceExportCanceledException CreateCanceledFailure(String operationName, GoogleWorkspaceSessionOptions? sessionOptions, TranslationReport report, OperationCanceledException exception) #Returns:
GoogleWorkspaceExportCanceledExceptionRecords caller cancellation and returns an exception that preserves the original cancellation token.
Parameters
- operationName System.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.
Returns
A structured cancellation exception.
public static GoogleWorkspaceExportException CreateRequestTimeoutFailure(String operationName, GoogleWorkspaceSessionOptions? sessionOptions, TranslationReport report, TaskCanceledException exception) #Returns:
GoogleWorkspaceExportExceptionRecords a request timeout and returns its structured export exception.
Parameters
- operationName System.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.
Returns
A request-timeout export exception.
public static GoogleWorkspaceExportException CreateTokenAcquisitionFailure(String operationName, IReadOnlyList<String> scopes, GoogleWorkspaceSession session, TranslationReport report, Exception exception) #Returns:
GoogleWorkspaceExportExceptionClassifies a credential failure, records it in the report, and returns an export exception.
Parameters
- operationName System.String
- User-facing name of the export operation.
- scopes System.Collections.Generic.IReadOnlyList<System.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.
Returns
A domain-delegation or token-acquisition export exception.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?