Class ExceptionExtensions
Provides extension methods to System.Exception and derived objects.
Inheritance
System.Object
ExceptionExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Rssdp
Assembly: cs.temp.dll.dll
Syntax
public static class ExceptionExtensions
Methods
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;