Last active
August 8, 2019 17:32
-
-
Save gpresland/d0824217fd138730a22a39174a45db39 to your computer and use it in GitHub Desktop.
Exception.cs
This file contains hidden or 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
using System; | |
using System.Runtime.Serialization; | |
namespace Project.Namespace | |
{ | |
/// <summary> | |
/// | |
/// </summary> | |
[Serializable] | |
public class MyException : Exception | |
{ | |
/// <summary> | |
/// | |
/// </summary> | |
public MyException() : base() | |
{ | |
// | |
} | |
/// <summary> | |
/// | |
/// </summary> | |
/// <param name="message"></param> | |
public MyException(string message) : base(message) | |
{ | |
// | |
} | |
/// <summary> | |
/// | |
/// </summary> | |
/// <param name="message"></param> | |
/// <param name="inner"></param> | |
public MyException(string message, Exception inner) : base(message, inner) | |
{ | |
// | |
} | |
/// <summary> | |
/// | |
/// </summary> | |
/// <param name="info"></param> | |
/// <param name="context"></param> | |
protected MyException(SerializationInfo info, StreamingContext context) : base(info, context) | |
{ | |
// | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment