Created
          January 23, 2012 10:48 
        
      - 
      
- 
        Save feanz/1662442 to your computer and use it in GitHub Desktop. 
    A standard validation exception
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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