hi ,
I'm using @handlesException to catch AuthorizationException its working fine . but the exceptions is visible in console ( which i don't like )
my class is like this:-
@HandlesExceptions
public class ExceptionHandler {
@Inject Messages messages;
public void handleAuthorizationException(@Handles CaughtException<AuthorizationException> evt) {
messages.error("You do not have the necessary permissions", "");
evt.handled();
}
}
any suggestions are welcome.
for checking you can consult security-authorization example from seam-3 .
Thanks