修复ErrorModule中间件中logger因为formatter为空
xxred 编写于 2019-02-13 20:28:36
NewLife.Cube
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using XCode.Membership;

namespace NewLife.Cube
{
    /// <summary>没有权限</summary>
    public class NoPermissionException : Exception
    {
        /// <summary>权限</summary>
        public PermissionFlags Permission { get; }

        /// <summary>实例化</summary>
        /// <param name="pm"></param>
        /// <param name="message"></param>
        public NoPermissionException(PermissionFlags pm, String message) : base(message) => Permission = pm;
    }
}