src/Azos/Security/Exceptions.cs
/// <summary>
/// Returns true when the specified exception is AuthorizationException or AuthorizationException exists
/// in the chain of InnerException/s of the specified exception
/// </summary>
Returns true when the specified exception is AuthorizationException or AuthorizationException exists
in the chain of InnerException/s of the specified exception
Returns true when the specified exception is AuthorizationException or AuthorizationException exists in the chain of InnerException / s of the specified exception
public static bool IsDenotedBy(Exception error)
    {
      while(error!=null)
      {
        if (error is AuthorizationException) return true;
        error = error.InnerException;
      }
      return false;
    }
public static bool IsDenotedBy ( Exception error ) { while ( error != null ) { if ( error is AuthorizationException ) return true ; error = error . InnerException ; } return false ; }
Returns true when the specified exception is AuthorizationException or AuthorizationException exists
in the chain of InnerException/s of the specified exception
Returns true when the specified exception is AuthorizationException or AuthorizationException exists in the chain of InnerException / s of the specified exception
error
Exception