# GoogleWorkspaceExportException

Export failure that preserves the translation report collected before the operation failed.

Class 

`OfficeIMO.GoogleWorkspace`

**Namespace**

`OfficeIMO.GoogleWorkspace`

**Assembly**

`OfficeIMO.GoogleWorkspace`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

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

**Base**

`Exception`

**Implements**

`ISerializable`

**Modifiers**

sealed

Export failure that preserves the translation report collected before the operation failed.

## Inheritance

- Exception
- GoogleWorkspaceExportException

## Usage

Explore 6 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Method [GoogleWorkspaceFailureDiagnostics.CreateAmbiguousMutationFailure](/api/google-workspace/officeimo-googleworkspace-googleworkspacefailurediagnostics/#method-createambiguousmutationfailure-string-officeimo-googleworkspace-googleworkspacesessionoptions-officeimo-googleworkspace-translationreport-officeimo-googleworkspace-googleworkspaceambiguousmutationexception)
- Method [GoogleWorkspaceFailureDiagnostics.CreateApiFailure](/api/google-workspace/officeimo-googleworkspace-googleworkspacefailurediagnostics/#method-createapifailure-string-officeimo-googleworkspace-googleworkspacesessionoptions-officeimo-googleworkspace-translationreport-exception)
- Method [GoogleWorkspaceFailureDiagnostics.CreateRequestTimeoutFailure](/api/google-workspace/officeimo-googleworkspace-googleworkspacefailurediagnostics/#method-createrequesttimeoutfailure-string-officeimo-googleworkspace-googleworkspacesessionoptions-officeimo-googleworkspace-translationreport-threading-tasks-taskcanceledexception)
- Method [GoogleWorkspaceFailureDiagnostics.CreateTokenAcquisitionFailure](/api/google-workspace/officeimo-googleworkspace-googleworkspacefailurediagnostics/#method-createtokenacquisitionfailure-string-collections-generic-ireadonlylist-system-string-officeimo-googleworkspace-googleworkspacesession-officeimo-googleworkspace-translationreport-exception)

### Accepted by parameters 2

- Method [GoogleWorkspaceDiagnosticsExtensions.ToDiagnosticEntries](/api/google-workspace/officeimo-googleworkspace-googleworkspacediagnosticsextensions/#method-todiagnosticentries-officeimo-googleworkspace-googleworkspaceexportexception) parameter `exception`
- Extension method [GoogleWorkspaceExportException.ToDiagnosticEntries](/api/google-workspace/officeimo-googleworkspace-googleworkspaceexportexception/#extension-todiagnosticentries-officeimo-googleworkspace-googleworkspaceexportexception) parameter `exception`

Filter members 

Show inherited

## Constructors

`public GoogleWorkspaceExportException(string message, GoogleWorkspaceFailureKind failureKind, TranslationReport report, Exception innerException)` [#](#constructor-ctor-string-officeimo-googleworkspace-googleworkspacefailurekind-officeimo-googleworkspace-translationreport-exception)

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

Creates an export failure with its structured category and accumulated translation report.

Parameters

**message string required**

Human-readable failure description.

**failureKind OfficeIMO.GoogleWorkspace.GoogleWorkspaceFailureKind required**

High-level failure category.

**report OfficeIMO.GoogleWorkspace.TranslationReport required**

Translation report available when the operation failed.

**innerException System.Exception required**

Underlying authentication, transport, or API exception.

## Inherited Methods

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

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual Exception GetBaseException()` [#](#method-getbaseexception)

Inherited from Exception

Returns

`Exception`

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

Inherited from object

Returns

`int`

`public virtual void GetObjectData(SerializationInfo info, StreamingContext context)` [#](#method-getobjectdata-serializationinfo-streamingcontext)

Inherited from Exception

`Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}")` `EditorBrowsable(1)`

Parameters

**info SerializationInfo required**

**context StreamingContext required**

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

Inherited from Exception

Returns

`Type`

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

Inherited from Exception

Returns

`string`

## Properties

`public GoogleWorkspaceFailureKind FailureKind { get; }` [#](#property-failurekind)

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

Gets the high-level failure category.

`public TranslationReport Report { get; }` [#](#property-report)

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

Gets the translation report available when the operation failed.

## Inherited Properties

`public MethodBase? TargetSite { get; }` [#](#property-targetsite)

Inherited from Exception

`public virtual string Message { get; }` [#](#property-message)

Inherited from Exception

`public virtual IDictionary Data { get; }` [#](#property-data)

Inherited from Exception

`public Exception? InnerException { get; }` [#](#property-innerexception)

Inherited from Exception

`public virtual string? HelpLink { get; set; }` [#](#property-helplink)

Inherited from Exception

`public virtual string? Source { get; set; }` [#](#property-source)

Inherited from Exception

`public int HResult { get; set; }` [#](#property-hresult)

Inherited from Exception

`public virtual string? StackTrace { get; }` [#](#property-stacktrace)

Inherited from Exception

## Extension Methods

`public static IReadOnlyList<GoogleWorkspaceDiagnosticEntry> ToDiagnosticEntries(GoogleWorkspaceExportException exception)` [#](#extension-todiagnosticentries-officeimo-googleworkspace-googleworkspaceexportexception)

[GoogleWorkspaceDiagnostics.cs:84](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceDiagnostics.cs#L84)

Converts an export exception and its report to structured diagnostics.

Parameters

**exception OfficeIMO.GoogleWorkspace.GoogleWorkspaceExportException required**

Export failure to convert.

Returns

`IReadOnlyList<GoogleWorkspaceDiagnosticEntry>` A leading export-failure entry followed by the report notices.

<!-- PowerForge markdown artifact sha256:23D6C4E58A98860ADB6E1646CFFC9529452CF05F2AAB09D8C16C266242EBA875 -->
