Skip to content

Instantly share code, notes, and snippets.

@gpresland
Last active August 8, 2019 17:32
Show Gist options
  • Save gpresland/d0824217fd138730a22a39174a45db39 to your computer and use it in GitHub Desktop.
Save gpresland/d0824217fd138730a22a39174a45db39 to your computer and use it in GitHub Desktop.
Exception.cs
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