Package bm.util

Interface RunOrThrow

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RunOrThrow
A runnable which may throw a BuildProblemException.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A Runnable which may throw any type of Exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <EX extends Exception>
    RunOrThrow
    of(RunOrThrow.RoT<EX> rot)
    Creates a runnable to convert an arbitrary Exception thrown to a BuildProblemException.
    void
    run()