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
T
The result from exceptionHandler
.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework