Interface RunnableError

All Superinterfaces:
Runnable

public interface RunnableError extends Runnable
Interface with the same behavior as Runnable but with the ability to handle errors within it
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    run()
    When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.
    void
    The general contract of the method run is that it may take any action whatsoever.
  • Method Details

    • runWithErr

      void runWithErr() throws Exception
      The general contract of the method run is that it may take any action whatsoever.
      Throws:
      Exception - error if something goes wrong
    • run

      default void run()
      When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

      The general contract of the method run is that it may take any action whatsoever.

      Specified by:
      run in interface Runnable
      See Also: