增加标准库NewLife.CoreST,支持.Net Standard 1.6,未能全部编译通过
大石头 authored at 2017-04-08 03:29:06
1.11 KiB
X
using System;

namespace NewLife.Net
{
    /// <summary>网络异常</summary>
    [Serializable]
    public class NetException : XException
    {
        #region 构造
        /// <summary>初始化</summary>
        public NetException() { }

        /// <summary>初始化</summary>
        /// <param name="message"></param>
        public NetException(String message) : base(message) { }

        /// <summary>初始化</summary>
        /// <param name="format"></param>
        /// <param name="args"></param>
        public NetException(String format, params Object[] args) : base(format, args) { }

        /// <summary>初始化</summary>
        /// <param name="message"></param>
        /// <param name="innerException"></param>
        public NetException(String message, Exception innerException) : base(message, innerException) { }

        /// <summary>初始化</summary>
        /// <param name="innerException"></param>
        public NetException(Exception innerException) : base((innerException != null ? innerException.Message : null), innerException) { }
        #endregion
    }
}