-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch and log serialization exceptions
- Loading branch information
Showing
10 changed files
with
163 additions
and
82 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
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
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
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,25 @@ | ||
using System; | ||
|
||
namespace CacheTower.Serializers; | ||
|
||
/// <summary> | ||
/// An exception for any cache serialization exceptions that occur. | ||
/// </summary> | ||
public class CacheSerializationException : Exception | ||
{ | ||
/// <summary> | ||
/// Creates a new <see cref="CacheSerializationException"/>. | ||
/// </summary> | ||
public CacheSerializationException() : base() { } | ||
/// <summary> | ||
/// Creates a new <see cref="CacheSerializationException"/> with the specified <paramref name="message"/>. | ||
/// </summary> | ||
/// <param name="message">The error message</param> | ||
public CacheSerializationException(string message) : base(message) { } | ||
/// <summary> | ||
/// Creates a new <see cref="CacheSerializationException"/> with the specified <paramref name="message"/> and <paramref name="innerException"/>. | ||
/// </summary> | ||
/// <param name="message">The error message</param> | ||
/// <param name="innerException">The inner exception</param> | ||
public CacheSerializationException(string message, Exception innerException) : base(message, innerException) { } | ||
} |
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
Oops, something went wrong.