< Summary

Information
Class: Elsa.Bpmn.Interchange.Exceptions.BpmnDefinitionNotFoundException
Assembly: Elsa.Bpmn.Interchange
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Bpmn.Interchange/Exceptions/BpmnDefinitionNotFoundException.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 16
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/BpmnDefinitionNotFoundException.cs

#LineLine coverage
 1namespace Elsa.Bpmn.Interchange.Exceptions;
 2
 3/// <summary>
 4/// Thrown when <see cref="Services.BpmnInterchangeDocumentService.ImportDocumentAsync"/> is asked to edit the BPMN
 5/// document of a workflow definition that no longer exists.
 6/// </summary>
 7/// <remarks>
 8/// <see cref="Services.BpmnInterchangeDocumentService.ImportDocumentAsync"/> edits an <em>existing</em> definition by
 9/// passing it as the shared import logic's <c>preserveMetadataFrom</c> parameter; a missing preservation source must
 10/// never fall through to the whole-definition import path <c>preserveMetadataFrom: null</c> takes; that path would
 11/// silently create a definition under the requested id with reset metadata instead of reporting that the PUT's
 12/// target disappeared. If the definition is deleted between the PUT endpoint's own existence/ETag check and this
 13/// method's lookup, this is what makes that race surface as a refusal rather than a silent, metadata-resetting
 14/// import.
 15/// </remarks>
 216public class BpmnDefinitionNotFoundException(string message) : Exception(message);

Methods/Properties

.ctor(System.String)