I am writing an error handling module for a rather complex system created in the form of layers. Sometimes our data layer throws hidden exceptions.
It would be very convenient to print the values method parameters that raised the exception.
I can think about the TargetSite property of the exception to find the types and names of the method parameters, but it seems I can not get the values ββ... Am I missing something?
Dupe
In .net exception, how to get stacktrace with argument values
... . . .
ArgumentOutOfRangeException ( , ... ... , ... , ctor...
throw new ArgumentOutOfRangeException(string parameterName, object actualValue, string message);
, , , ,