Class WithFailures.ExceptionElement<T>

  • Enclosing class:
    WithFailures

    public abstract static class WithFailures.ExceptionElement<T>
    extends java.lang.Object
    The value type passed as input to exception handlers. It wraps an exception together with the input element that was being processed at the time the exception was raised.

    Exception handlers may want to re-raise the exception and catch only specific subclasses in order to limit the scope of handled exceptions or access subclass-specific data.

    • Constructor Detail

      • ExceptionElement

        public ExceptionElement()
    • Method Detail

      • element

        public abstract T element()
      • exception

        public abstract java.lang.Exception exception()