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 Exception

320 Views
Copy Code Show/Hide Line Numbers
using System;
using System.Runtime.Serialization;
 
public class ExceptionTemplate
    : Exception
{
    public ExceptionTemplate()
    { }
 
    public ExceptionTemplate(string message)
        : base(message)
    { }
 
    public ExceptionTemplate(string message, Exception innerException)
        : base(message, innerException)
    { }
 
    public ExceptionTemplate(SerializationInfo info, StreamingContext context)
        : base(info, context)
    { }
}
by Al Gonzalez
  April 07, 2010 @ 12:48pm
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