Exceptions

Create custom exception class

[Serializable]  
public class BLException : Exception
{
    public BLException() : base()
    {
    }

    public BLException(string description) : base(description)
    {
    }

    public BLException(string description, Exception ex) : base(description, ex)
    {
    }

    public BLException(System.Runtime.Serialization.SerializationInfo serInfo, System.Runtime.Serialization.StreamingContext context) : base(serInfo, context)
    {
    }

}

References

Exception Handling in C#
Custom Exception Handling in C#

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License