Class ThrowableFunction<F,T>

java.lang.Object
org.n52.janmayen.function.ThrowableFunction<F,T>
All Implemented Interfaces:
com.google.common.base.Function<F,T>, Function<F,T>

public abstract class ThrowableFunction<F,T> extends Object implements com.google.common.base.Function<F,T>
TODO JavaDoc
  • Constructor Details

    • ThrowableFunction

      public ThrowableFunction()
  • Method Details

    • apply

      public T apply(F input)
      Specified by:
      apply in interface com.google.common.base.Function<F,T>
      Specified by:
      apply in interface Function<F,T>
    • getErrors

      public List<Exception> getErrors()
    • getFirstError

      public Exception getFirstError()
    • hasErrors

      public boolean hasErrors()
    • propagateIfPossible

      public <X extends Throwable> void propagateIfPossible(Class<X> declaredType) throws X
      Throws:
      X
    • applyThrowable

      protected abstract T applyThrowable(F input) throws Exception
      Throws:
      Exception