﻿namespace NetCreditHub
{
    using System;
    using System.Runtime.Serialization;

    /// <summary>
    /// 系统抛出的特定异常的基类型.
    /// </summary>
    [Serializable]
    public class HubExceptionBase : Exception
    {
        /// <summary>
        /// 创建一个样新的 <see cref="HubExceptionBase"/> 对象.
        /// </summary>
        public HubExceptionBase()
        {

        }

        /// <summary>
        ///创建一个新的 <see cref="HubExceptionBase"/> 对象.
        /// </summary>
        public HubExceptionBase(SerializationInfo serializationInfo, StreamingContext context)
            : base(serializationInfo, context)
        {

        }

        /// <summary>
        /// 创建一个新的 <see cref="HubExceptionBase"/> 对象.
        /// </summary>
        /// <param name="message">异常信息</param>
        public HubExceptionBase(string message)
            : base(message)
        {

        }

        /// <summary>
        /// 创建一个新的<see cref="HubExceptionBase"/> 对象.
        /// </summary>
        /// <param name="message">异常内容</param>
        /// <param name="innerException">内部异常</param>
        public HubExceptionBase(string message, Exception innerException)
            : base(message, innerException)
        {

        }
    }
}