-
Notifications
You must be signed in to change notification settings - Fork 0
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 #75 from TaloDev/continuity-replay-exception
Add continuity replay exception
- Loading branch information
Showing
3 changed files
with
47 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
23 changes: 23 additions & 0 deletions
23
Packages/com.trytalo.talo/Runtime/Utils/ContinuityReplayException.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,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace TaloGameServices | ||
{ | ||
public class ContinuityReplayException : Exception | ||
{ | ||
private List<Exception> _exceptions; | ||
public List<Exception> Exceptions => _exceptions; | ||
|
||
public ContinuityReplayException(List<Exception> exceptions) | ||
: base($"{exceptions.Count} requests failed after being replayed") | ||
{ | ||
_exceptions = exceptions; | ||
} | ||
|
||
public ContinuityReplayException(List<Exception> exceptions, Exception inner) | ||
: base($"{exceptions.Count} requests failed after being replayed", inner) | ||
{ | ||
_exceptions = exceptions; | ||
} | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
Packages/com.trytalo.talo/Runtime/Utils/ContinuityReplayException.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.