Create a gist now

Instantly share code, notes, and snippets.

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