DbExecutionStrategy.UnwrapAndHandleException<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Recursively gets InnerException from exception
as long as it's an
EntityException, DbUpdateException or UpdateException
and passes it to exceptionHandler
public static T UnwrapAndHandleException<T>(Exception exception, Func<Exception,T> exceptionHandler);
static member UnwrapAndHandleException : Exception * Func<Exception, 'T> -> 'T
Type Parameters
- T
The type of the unwrapped exception.
Parameters
- exception
- Exception
The exception to be unwrapped.
Returns
The result from exceptionHandler
.