src/Misc/EFTools/DesignXmlCore/Common/CriticalException.cs
/// <summary>
///     Gets whether exception is a critical one and can't be ignored with corrupting
///     AppDomain state.
/// </summary>
/// <param name="ex">Exception to test.</param>
/// <returns>True if exception should not be swallowed.</returns>
Gets whether exception is a critical one and can't be ignored with corrupting
AppDomain state.
Gets whether exception is a critical one and can ' t be ignored with corrupting AppDomain state .
internal static bool IsCriticalException(Exception ex)
        {
            if (DisableExceptionFilter)
            {
                return true;
            }
            if (ex is NullReferenceException
                || ex is StackOverflowException
                || ex is OutOfMemoryException
                || ex is ThreadAbortException)
            {
                return true;
            }
            if (ex.InnerException != null)
            {
                return IsCriticalException(ex.InnerException);
            }
            return false;
        }
internal static bool IsCriticalException ( Exception ex ) { if ( DisableExceptionFilter ) { return true ; } if ( ex is NullReferenceException || ex is StackOverflowException || ex is OutOfMemoryException || ex is ThreadAbortException ) { return true ; } if ( ex . InnerException != null ) { return IsCriticalException ( ex . InnerException ) ; } return false ; }
Gets whether exception is a critical one and can't be ignored with corrupting
AppDomain state.
Gets whether exception is a critical one and can ' t be ignored with corrupting AppDomain state .
// When filtering is not-enabled, all exceptions are critical and should be reported to Watson.
True if exception should not be swallowed.
True if exception should not be swallowed .
ex
Exception
Exception to test.
Exception to test .