-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Exception type for Event errors (#217)
Co-authored-by: Lucas Pedroza <[email protected]>
- Loading branch information
1 parent
6edb88f
commit 74e08fb
Showing
3 changed files
with
18 additions
and
3 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
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,15 @@ | ||
using Fauna.Core; | ||
|
||
namespace Fauna.Exceptions; | ||
|
||
/// <summary> | ||
/// Represents an exception related to Fauna Event Stream and Event Feed errors. | ||
/// </summary> | ||
public class EventException : ServiceException | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="EventException"/> class. | ||
/// </summary> | ||
/// <param name="err">The <see cref="ErrorInfo"/> from which to extract a message.</param> | ||
public EventException(ErrorInfo err) : base(message: err.Message!) { } | ||
} |
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