hello
i like to report all exceptions that occurs in our system. i found @Observer techniques so i played a bit around.
the org.jboss.seam.security.loginSuccessful
works fine!
the org.jboss.seam.exceptionHandled
or org.jboss.seam.exceptionNotHandled
is never get called. no matter what i throw!
question 1:
should i get all exceptions thrown in a seam component? eg IllegalStateException or nullpointer?
question 2:
is there a way how i can access the exception?
i like to print it out!
cheers
joe
@Name("reportException") public class ReportException { private static final Log LOGGER = LoggerFactory.make(); @Observer("org.jboss.seam.exceptionHandled") public void exceptionOccured1() { LOGGER.info("Handel Exception "); } @Observer("org.jboss.seam.exceptionNotHandled") public void exceptionOccured2() { LOGGER.info("Handel Exception "); } @Observer("org.jboss.seam.validationFailed") public void exceptionOccured3() { LOGGER.info("Handel Exception "); } @Observer("org.jboss.seam.security.loginSuccessful") public void exceptionOccured4() { LOGGER.info("Handel Exception "); } }