-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5917 from elsa-workflows/enh/uk_ex
Introduce UniqueKeyConstraintViolationException
- Loading branch information
Showing
3 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
src/modules/Elsa.Workflows.Core/Exceptions/DataProcessingException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
namespace Elsa.Workflows.Exceptions; | ||
|
||
/// An exception that occurs during data processing. | ||
public class DataProcessingException(bool isUkViolation, string message, Exception exception) : Exception(message, exception) | ||
{ | ||
/// Gets a value indicating whether the exception is a Unique Key violation. | ||
public bool IsUkViolation { get; } = isUkViolation; | ||
} | ||
public class DataProcessingException(string message, Exception exception) : Exception(message, exception); |
4 changes: 4 additions & 0 deletions
4
src/modules/Elsa.Workflows.Core/Exceptions/UniqueKeyConstraintViolationException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace Elsa.Workflows.Exceptions; | ||
|
||
/// An exception that when a unique key constraint has been violated. | ||
public class UniqueKeyConstraintViolationException(string message, Exception exception) : Exception(message, exception); |