Class Effect.X<A>

Enclosing class:
Effect<A>

public abstract static class Effect.X<A> extends Effect<A>
Version of Effect that allows for throwing a checked exception.
  • Constructor Details

    • X

      public X()
  • Method Details

    • run

      protected void run(A a)
      Description copied from class: Effect
      Run the side effect.
      Specified by:
      run in class Effect<A>
    • xrun

      protected abstract void xrun(A a) throws Exception
      Run the side effect. Any thrown exception gets "chucked" so that you may catch them as is. See Functions.chuck(Throwable) for details.
      Throws:
      Exception