Handle()

Details_AggregateException::Handle(const Func<Exception, bool>&) method

Invokes a handler function on each inner exception and rethrows any unhandled exceptions.

void System::Details_AggregateException::Handle(const Func<Exception, bool> &predicate)

Arguments

ParameterTypeDescription
predicateconst Func<Exception, bool>&A function that takes an Exception and returns true if it is handled.

Remarks

If all exceptions are handled, the method returns normally; otherwise, a new AggregateException containing the unhandled exceptions is thrown.

See Also