Class SimpleExceptionObserver

  • All Implemented Interfaces:
    ExceptionObserver

    public final class SimpleExceptionObserver
    extends java.lang.Object
    implements ExceptionObserver
    Simple exception observer.
    • Constructor Detail

      • SimpleExceptionObserver

        public SimpleExceptionObserver()
    • Method Detail

      • exceptionThrown

        public java.lang.Exception exceptionThrown​(java.lang.Exception ex)
        Description copied from interface: ExceptionObserver
        An exception has been thrown.
        Specified by:
        exceptionThrown in interface ExceptionObserver
        Parameters:
        ex - exception
        Returns:
        the same exception
      • getExceptionList

        public java.util.List<java.lang.Exception> getExceptionList()
        Specified by:
        getExceptionList in interface ExceptionObserver
        Returns:
        list of all the thrown exception
      • getLastException

        public java.util.Optional<java.lang.Exception> getLastException()
        Specified by:
        getLastException in interface ExceptionObserver
        Returns:
        last thrown exception
      • getFirstException

        public java.util.Optional<java.lang.Exception> getFirstException()
        Specified by:
        getFirstException in interface ExceptionObserver
        Returns:
        first thrown exception