Method IsCritical
IsCritical(Exception)
Returns true of the specified exception is one that indicates some form of memory corruption, out of memory state or other fatal exception that should never be handled by user code.
Declaration
public static bool IsCritical(this Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if the specified exception is considered critical and should be re-thrown and not otherwise handled by user code. |
Remarks
Doesn't check for System.StackOverflowExceptions as if the stack really is full calling this method might check, therefore calling code must explicitly handle that exception type itself.
Specifically checks for the following exception types;
IsCritical(Exception)
Returns true of the specified exception is one that indicates some form of memory corruption, out of memory state or other fatal exception that should never be handled by user code.
Declaration
public static bool IsCritical(this Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | exception | The exception to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if the specified exception is considered critical and should be re-thrown and not otherwise handled by user code. |
Remarks
Doesn't check for System.StackOverflowExceptions as if the stack really is full calling this method might check, therefore calling code must explicitly handle that exception type itself.
Specifically checks for the following exception types;