ExceptionExtensionMethods
Provides some extension methods for various types of exception.
Methods
Test whether an aggregate exception contains an exception of the specified type.
Parameters:
| aggregate (AggregateException) | Aggregate exception. |
| exception (out T) | Instance of first exception of type T in the aggregate or null. |
Returns: True if an exception of type T is present in the aggregate.
Test whether an aggregate exception contains an exception of the specified type.
Parameters:
| aggregate (AggregateException) | Aggregate exception. |
Returns: True if an exception of type T is present in the aggregate.
public static bool ExtractRhinoVersion(this EntryPointNotFoundException exception, out int rhinoVersion, out int rhinoServiceRelease)
Try and extract the Rhino main version and service release indicated by the exception entry point.
Parameters:
| exception (EntryPointNotFoundException) | |
| rhinoVersion (out int) | |
| rhinoServiceRelease (out int) |
Tests whether an exception represents a cancellation. If the exception is a TaskCanceledException, OperationCanceledException or an AggregateException containing any of the above exceptions, the exception as a whole is considered to be a cancelling exception rather than a faulting exception.
Parameters:
| exception (Exception) |