In my aspect class’s method I want to get the values of the parameters and the name of the parameters.
Names are still ok if I don’t get but I need to get the values of the parameters passed is it possible?
(There is not issue with ptCut expression , the method is getting called i checked with sysouts)
My Aspect method is something like this :
public void excpetionHappened(Exception e) {
// Log the exception
// log the name of the method name/signature which caused the exception
// log the value of the input parameters to the method
// wrap and throw new exctn
}
Thanks in advance.
You can use a around advice.
This makes it possible to access the parameter while handling the exception.