Interface RunnableWithException

  • 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 RunnableWithException
    Runnable interface that allows exceptions.
    • Method Detail

      • run

        void run()
          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • orElseThrow

        default java.lang.Runnable orElseThrow()
      • ignoreException

        default java.lang.Runnable ignoreException()
      • asRunnableIgnoreException

        static java.lang.Runnable asRunnableIgnoreException​(RunnableWithException unchecked)