CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Language: C#

Code template for a custom ArgumentException

237 Views
Copy Code Show/Hide Line Numbers
using System;
using System.Runtime.Serialization;
 
public class ArgumentExceptionTemplate
    : ArgumentException
{
    public ArgumentExceptionTemplate()
    { }
 
    public ArgumentExceptionTemplate(string message)
        : base(message)
    { }
 
    public ArgumentExceptionTemplate(string message, Exception innerException)
        : base(message, innerException)
    { }
 
    public ArgumentExceptionTemplate(string message, string paramName)
        : base(message, paramName)
    { }
 
    public ArgumentExceptionTemplate(string message, string paramName, Exception innerException)
        : base(message, paramName, innerException)
    { }
 
    public ArgumentExceptionTemplate(SerializationInfo info, StreamingContext context)
        : base(info, context)
    { }
}
by Al Gonzalez
  April 07, 2010 @ 12:53pm
Tags:

Add a comment


Report Abuse
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate