Skip to content

Instantly share code, notes, and snippets.

@feanz
Created January 23, 2012 10:48
Show Gist options
  • Save feanz/1662442 to your computer and use it in GitHub Desktop.
Save feanz/1662442 to your computer and use it in GitHub Desktop.
A standard validation exception
using System;
namespace Utilities
{
/// <summary>
/// Classed used to distinguish validation exceptions from standard argument or application exceptions
/// </summary>
public class ValidationException : ArgumentException
{
public ValidationException()
{
}
public ValidationException(string message)
: base(message)
{
}
public ValidationException(string message, string paramName)
: base(message, paramName)
{
}
public ValidationException(string message, Exception innerException)
: base(message, innerException)
{
}
public ValidationException(string message, string paramName, Exception innerException)
: base(message, paramName, innerException)
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment