Aspectacular.AspNetRoleAuthorizationAspect.ThrowAuthorizationException C# (CSharp) 메소드

ThrowAuthorizationException() 보호된 메소드

protected ThrowAuthorizationException ( string errorMsg ) : void
errorMsg string
리턴 void
        protected override void ThrowAuthorizationException(string errorMsg)
        {
            try
            {
                HttpContext.Current.Response.StatusCode = (int)HttpStatusCode.Forbidden;
            }
                // ReSharper disable once EmptyGeneralCatchClause
            catch
            {
                // No biggy if status code has already been written, we can skip this.
            }

            base.ThrowAuthorizationException(errorMsg);
        }
AspNetRoleAuthorizationAspect