Interface ThrowingRunnable

All Superinterfaces:
Runnable

public interface ThrowingRunnable extends Runnable
A functional interface representing runnable task able to throw an exception. It extends the Runnable interface and provides default implementation of the Runnable.run() method handling the exception by rethrowing it wrapped inside a DocxStamperException.
Version:
1.6.6
Author:
Joseph Verron
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    run()
    Executes the runnable task, handling any exception by throwing it wrapped inside a DocxStamperException.
    void
    Executes the runnable task
  • Method Details

    • run

      default void run()
      Executes the runnable task, handling any exception by throwing it wrapped inside a DocxStamperException.
      Specified by:
      run in interface Runnable
    • throwingRun

      void throwingRun() throws Exception
      Executes the runnable task
      Throws:
      Exception - if an exception occurs executing the task