Class WaitException

All Implemented Interfaces:
Serializable

public class WaitException extends RuntimeException
Extension for RuntimeException used in active waiting. See the Utils.waitFor(String, Duration, Duration, BooleanSupplier) method. Usage of this Exception should be always associated with active waiting where the condition should not always be met which results in WaitException.
See Also:
  • Constructor Details

    • WaitException

      public WaitException(String message)
      WaitException used for active waiting
      Parameters:
      message - specific message to throw
    • WaitException

      public WaitException(Throwable cause)
      WaitException used for active waiting
      Parameters:
      cause - type of cause