v7.3.2018.0614   重构高性能资源池,减少GC压力,增加线程池,让异步任务得到平等竞争CPU的机会
大石头 authored at 2018-06-14 17:56:44
1.13 KiB
X
using System;
using System.Runtime.Serialization;
using NewLife;

namespace XCode
{
    /// <summary>实体异常</summary>
    public class EntityException : XException
    {
        #region 构造
        /// <summary>初始化</summary>
        public EntityException() { }

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

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

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

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