Skip to content

Instantly share code, notes, and snippets.

@JayBazuzi
Created January 29, 2015 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JayBazuzi/cab0b9d0d41cc49024ab to your computer and use it in GitHub Desktop.
Save JayBazuzi/cab0b9d0d41cc49024ab to your computer and use it in GitHub Desktop.
class FooOutOfRangeException : Exception
{
public readonly string Foo;
public FooOutOfRangeException(string foo)
{
Foo = foo;
}
public override string Message
{
get { return string.Format("The foo was out of range ({0})", Foo); }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment