Share via


ErrorHandler.IsCriticalException(Exception) Method

Definition

Returns true if the Exception is one of:

These exceptions should be re-thrown even the exception would cross a COM boundary. Such exceptions are considered critical and should immediately terminate the application.
public:
 static bool IsCriticalException(Exception ^ ex);
public static bool IsCriticalException (Exception ex);
static member IsCriticalException : Exception -> bool
Public Shared Function IsCriticalException (ex As Exception) As Boolean

Parameters

ex
Exception

The exception to test.

Returns

True if ex is one of the critical exceptions that should not be converted to an HRESULT.

Applies to