-
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.
- Loading branch information
1 parent
bb82c4c
commit b2fa02c
Showing
10 changed files
with
201 additions
and
93 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,92 @@ | ||
/* | ||
* COPYRIGHT: See COPYING in the top level directory | ||
* PROJECT: Serializer | ||
* FILE: Serializer/Exceptions.cs | ||
* PURPOSE: Serialize, Deserialize Exceptions | ||
* PROGRAMER: Peter Geinitz (Wayfarer) | ||
*/ | ||
|
||
// ReSharper disable UnusedMember.Global | ||
// ReSharper disable MemberCanBeInternal | ||
|
||
using System; | ||
|
||
namespace Serializer | ||
{ | ||
/// <summary> | ||
/// Holds all Exceptions | ||
/// </summary> | ||
public static partial class Serialize | ||
{ | ||
/// <inheritdoc /> | ||
/// <summary> | ||
/// Serialization Exception | ||
/// </summary> | ||
/// <seealso cref="T:System.Exception" /> | ||
public sealed partial class SerializationException | ||
{ | ||
/// <inheritdoc /> | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="T:Serializer.Serialize.SerializationException" /> class. | ||
/// </summary> | ||
/// <param name="message">The error message that explains the reason for the exception.</param> | ||
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (<see langword="Nothing" /> in Visual Basic) if no inner exception is specified.</param> | ||
internal SerializationException(string message, Exception innerException) | ||
: base(message, innerException) | ||
{ | ||
} | ||
|
||
/// <inheritdoc /> | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="T:Serializer.Serialize.SerializationException" /> class. | ||
/// </summary> | ||
public SerializationException() | ||
{ | ||
} | ||
|
||
/// <inheritdoc /> | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="T:Serializer.Serialize.SerializationException" /> class. | ||
/// </summary> | ||
/// <param name="message">The message that describes the error.</param> | ||
public SerializationException(string message) : base(message) | ||
{ | ||
} | ||
} | ||
|
||
/// <inheritdoc /> | ||
/// <summary> | ||
/// Custom exception for deserialization errors. | ||
/// </summary> | ||
public sealed class DeserializationException : Exception | ||
{ | ||
/// <inheritdoc /> | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="T:Serializer.Serialize.DeserializationException" /> class. | ||
/// </summary> | ||
/// <param name="message">The error message that explains the reason for the exception.</param> | ||
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (<see langword="Nothing" /> in Visual Basic) if no inner exception is specified.</param> | ||
internal DeserializationException(string message, Exception innerException) | ||
: base(message, innerException) | ||
{ | ||
} | ||
|
||
/// <inheritdoc /> | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="T:Serializer.Serialize.DeserializationException" /> class. | ||
/// </summary> | ||
public DeserializationException() | ||
{ | ||
} | ||
|
||
/// <inheritdoc /> | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="T:Serializer.Serialize.DeserializationException" /> class. | ||
/// </summary> | ||
/// <param name="message">The message that describes the error.</param> | ||
public DeserializationException(string message) : base(message) | ||
{ | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.