Skip to content

Normalize TargetInvocationException unwrapping #1441

@fredericDelaporte

Description

@fredericDelaporte

Some TargetInvocationException unwrapping are done by using ReflectHelper.UnwrapTargetInvocationException, which preserves the stack trace by the way.

Others are "manually" done, overriding the stack trace (mainly in Linq provider).

Some unwrapping are missing too. By example in DefaultDynamicLazyFieldInterceptor in the same method, one call to InvokeMethodOnTarget is guarded for unwrapping while the other is not. (The unwrapping should be moved to InvokeMethodOnTarget in this case.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions