Skip to content

Instantly share code, notes, and snippets.

@Restuta
Created July 25, 2013 19:45
Show Gist options
  • Save Restuta/6083090 to your computer and use it in GitHub Desktop.
Save Restuta/6083090 to your computer and use it in GitHub Desktop.
R# custom exception file template
using System;
using System.Runtime.Serialization;
using SaaS.Exceptions;
namespace $NAMESPACE$
{
/// <summary>
/// Thrown when $Reason$.
/// </summary>
[Serializable]
public sealed class $ExceptionName$ : ExceptionBase
{
public $ExceptionName$(){}
public $ExceptionName$(string message) : base(message){ }
public $ExceptionName$(string message, Exception inner) : base(message, inner) { }
private $ExceptionName$(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