# GoogleWorkspaceConflictException

Raised before mutation when a remote resource no longer matches the caller's observed version.

Class 

`OfficeIMO.GoogleWorkspace`

**Namespace**

`OfficeIMO.GoogleWorkspace`

**Assembly**

`OfficeIMO.GoogleWorkspace`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[GoogleWorkspaceConflictException.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceConflictException.cs#L18)

**Base**

`InvalidOperationException`

**Implements**

`ISerializable`

**Modifiers**

sealed

Raised before mutation when a remote resource no longer matches the caller's observed version.

## Inheritance

- InvalidOperationException
- GoogleWorkspaceConflictException

Filter members 

Show inherited

## Constructors

`public GoogleWorkspaceConflictException(string message, string targetId, string? expectedVersion, string? actualVersion, TranslationReport report)` [#](#constructor-ctor-string-string-string-string-officeimo-googleworkspace-translationreport)

[GoogleWorkspaceConflictException.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceConflictException.cs#L18)

Initializes a conflict with the expected and observed versions of the target resource.

Parameters

**message string required**

Message describing the rejected mutation.

**targetId string required**

Identifier of the resource whose version changed.

**expectedVersion string? required**

Version expected by the caller, or null when unavailable.

**actualVersion string? required**

Version observed before mutation, or null when unavailable.

**report OfficeIMO.GoogleWorkspace.TranslationReport required**

Translation report containing the associated conflict diagnostics.

## 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 string TargetId { get; }` [#](#property-targetid)

[GoogleWorkspaceConflictException.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceConflictException.cs#L26)

Gets the identifier of the resource whose mutation was rejected.

`public string? ExpectedVersion { get; }` [#](#property-expectedversion)

[GoogleWorkspaceConflictException.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceConflictException.cs#L28)

Gets the resource version expected by the caller, when known.

`public string? ActualVersion { get; }` [#](#property-actualversion)

[GoogleWorkspaceConflictException.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceConflictException.cs#L30)

Gets the resource version observed before mutation, when known.

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

[GoogleWorkspaceConflictException.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace/GoogleWorkspaceConflictException.cs#L32)

Gets the report containing structured conflict diagnostics.

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

<!-- PowerForge markdown artifact sha256:F028378D7900F1941DEAB9462748B9B6B1DA8F28493BA5F47B265824DFA5DF7A -->
