-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new implementation of Error class for a Conflict error (#12)
- Loading branch information
1 parent
3fc8e84
commit d85a77b
Showing
2 changed files
with
27 additions
and
1 deletion.
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
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,22 @@ | ||
// Copyright (c) Winton. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. | ||
|
||
namespace Winton.DomainModelling | ||
{ | ||
/// <inheritdoc /> | ||
/// <summary> | ||
/// An error indicating that a conflicting entity exists. | ||
/// </summary> | ||
public class ConflictError : Error | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ConflictError" /> class. | ||
/// </summary> | ||
/// <param name="detail">The detail that describes the error.</param> | ||
/// <returns>A new instance of <see cref="ConflictError" />.</returns> | ||
public ConflictError(string detail) | ||
: base("Conflict", detail) | ||
{ | ||
} | ||
} | ||
} |