Interface FailableRunnable

  • 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 FailableRunnable
    The FailableRunnable is Runnable alternative with exception throwing possibility.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void run()
      Execute runnable action, or throw an exception if unable to execute.
    • Method Detail

      • run

        void run()
          throws Exception
        Execute runnable action, or throw an exception if unable to execute.
        Throws:
        Exception - if unable to execute runnable