[please replace (at) with the at sign i.e. shift-2 on your keyboard on the below, apparently I can't use shift-2 for my first 15 posts because its a URL]
Hi All,
I'm wondering if there is a way to get the name of the method or some information about the call that generated the AccessDeniedException from an (at)Secured annotation.
Ideally, I'd like to be able to display this info to the user something like this...
where ??? is what I use to determine which object/method call triggered the AccessDeniedExceptionCode:try { securedMethod1() securedMethod2() securedMethod3() securedMethod4() securedMethod5() } catch (AccessDeniedException ade) { System.out.println("Access was denied when attempting to call: " + ade.???); }
-G


