< Summary

Information
Class: Elsa.Bpmn.Interchange.Exceptions.BpmnDocumentPreconditionFailedException
Assembly: Elsa.Bpmn.Interchange
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Bpmn.Interchange/Exceptions/BpmnDocumentPreconditionFailedException.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 12
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Bpmn.Interchange/Exceptions/BpmnDocumentPreconditionFailedException.cs

#LineLine coverage
 1namespace Elsa.Bpmn.Interchange.Exceptions;
 2
 3/// <summary>
 4/// Thrown when <see cref="Services.BpmnInterchangeDocumentService.ImportDocumentAsync"/> loses the
 5/// compare-and-swap against the caller's <c>If-Match</c>: another writer saved the definition after
 6/// the PUT's early ETag check (or between that check and this save).
 7/// </summary>
 8/// <remarks>
 9/// Mapped to the same <c>412</c> / <c>bpmn.document.precondition-failed</c> response the PUT already
 10/// sends when <c>If-Match</c> is stale on arrival, so a lost race and a stale header are one refusal.
 11/// </remarks>
 812public class BpmnDocumentPreconditionFailedException(string message) : Exception(message);

Methods/Properties

.ctor(System.String)