Skip to content

Instantly share code, notes, and snippets.

@btodts
Created April 5, 2019 10:59
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 btodts/f355c66b40942c0df88feeba4804b111 to your computer and use it in GitHub Desktop.
Save btodts/f355c66b40942c0df88feeba4804b111 to your computer and use it in GitHub Desktop.
public sealed class GuardException : Exception
{
public string ArgumentName { get; }
public GuardException(string argumentName, string message)
: base(message)
{
ArgumentName = argumentName;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment