[fix]Config创建默认配置文件的开关Runtime.CreateConfigOnMissing,仅需对自动创建生效,而不应该阻止用户主动Save
智能大石头 编写于 2024-08-09 00:30:41 石头 提交于 2024-08-10 14:22:24
X
using System;
using System.Runtime.Serialization;
using NewLife.Exceptions;

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) { }

        /// <summary>初始化</summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected NetException(SerializationInfo info, StreamingContext context) : base(info, context) { }
        #endregion
    }
}