Table of Contents

Class XapiConflictException

Namespace
Xapi.Client
Assembly
Xapi.Client.dll

The LRS answered 409 Conflict.

public sealed class XapiConflictException : XapiHttpException, ISerializable
Inheritance
XapiConflictException
Implements
Inherited Members

Remarks

For Statements this means the LRS already has a Statement with the same id and it does not match the one sent (IEEE 9274.1.1, 4.1.6.1). The LRS changed nothing. For a batch the response does not say which Statement conflicted; fetch each with GetStatementAsync(Guid, StatementFormat, CancellationToken) and compare with StatementEquivalence.

For documents it means a PUT without If-Match or If-None-Match hit an existing document (IEEE 9274.1.1, 4.1.4). Fetch the document and send its ETag with IfMatch(string).

Constructors

XapiConflictException()

Creates an exception with a generic message.

public XapiConflictException()

XapiConflictException(string)

Creates an exception with a message.

public XapiConflictException(string message)

Parameters

message string

The message.

XapiConflictException(string, Exception)

Creates an exception with a message and an inner exception.

public XapiConflictException(string message, Exception innerException)

Parameters

message string

The message.

innerException Exception

The inner exception.

XapiConflictException(string, string?)

Creates an exception for a 409 response.

public XapiConflictException(string message, string? responseBody)

Parameters

message string

The message.

responseBody string

The response body as text, if any.