ExceptionExtensionMethods
Provides some extension methods for various types of exception.
Methods
Test whether an aggregate exception contains an exception of the specified type.
public static bool Contains<T>()
this AggregateException
aggregate,
Aggregate exception.
out T
exception
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.
Returns: True if an exception of type T is present in the aggregate.
Try and extract the Rhino main version and service release indicated by the exception entry point.
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.