EPiWiki.se  - EPiServer notes shared with others
 

Snipplet to create a own Exception

[Edit]
A bit of code that you write probably at least ones for each project you working with.

using System;
using System.Runtime.Serialization;

namespace Development.Classes
{
    Serializable
    public class MyException : Exception
    {
        public MyException()
            : base()
        { }

        public MyException(string message)
            : base(message)
        { }

        public MyException(string message, Exception innerException)
            : base(message, innerException)
        { }

        protected MyException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        { }
    }
}
Version author:
Mattias Lövström

EPiServer version

All