0 Replies Latest reply on Jan 9, 2013 6:39 AM by rahul22

    @handlesExceptions shows exception in eclipse console

    rahul22

      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