Endjin.Assembly.ChangeDetection.Infrastructure.ExceptionHelper.IsSecurityOrFatal C# (CSharp) Method

IsSecurityOrFatal() public static method

Determines whether the exception is a security or fatal exception. Use this functions in security relevant code inside any catch(Exception ex) handler to prevent swallowing relevant exceptions.
public static IsSecurityOrFatal ( Exception ex ) : bool
ex System.Exception The exception to test.
return bool
        public static bool IsSecurityOrFatal(Exception ex)
        {
            if (!(ex is SecurityException))
            {
                return IsFatal(ex);
            }
            return true;
        }