Class UncaughtExceptionService

  • All Implemented Interfaces:
    java.lang.Thread.UncaughtExceptionHandler

    @ApplicationScoped
    public class UncaughtExceptionService
    extends java.lang.Object
    implements java.lang.Thread.UncaughtExceptionHandler
    Author:
    Michael Remijan mjremijan@yahoo.com @mjremijan
    • Field Detail

      • log

        @Inject
        protected org.slf4j.Logger log
      • exitEvent

        @Inject
        protected javax.enterprise.event.Event<ExitEvent> exitEvent
      • error

        @Inject
        protected javax.enterprise.event.Event<EmailErrorEvent> error
    • Constructor Detail

      • UncaughtExceptionService

        public UncaughtExceptionService()
    • Method Detail

      • observesStartup

        public void observesStartup​(@Observes @Priority(10)
                                    StartupEvent event)
      • uncaughtException

        public void uncaughtException​(java.lang.Thread t,
                                      java.lang.Throwable e)
        Specified by:
        uncaughtException in interface java.lang.Thread.UncaughtExceptionHandler