Class HaltCheckerException

All Implemented Interfaces:
Serializable

public class HaltCheckerException extends RuntimeException
Exception thrown to halt execution of the current and all subsequent executions.
See Also:
  • Method Details

    • ok

      public static HaltCheckerException ok()
      Constructs a new HaltCheckerException indicating that the exploration stopped naturally without any errors.
    • timeout

      public static HaltCheckerException timeout()
      Constructs a new HaltCheckerException indicating that the exploration was halted due to a timeout.
    • error

      public static HaltCheckerException error(String message)
      Constructs a new HaltCheckerException indicating that the exploration was halted due to an error.
      Parameters:
      message - the error message
    • error

      public static HaltCheckerException error(String message, Throwable cause)
      Constructs a new HaltCheckerException indicating that the exploration was halted due to an error, with a cause.
      Parameters:
      message - the error message
      cause - the cause of the error
    • isOkay

      public boolean isOkay()
      Returns whether the exploration was successful without any errors.
      Returns:
      true if the exploration was successful, false otherwise
    • isTimeout

      public boolean isTimeout()
      Returns whether the exploration was halted due to a timeout.
      Returns:
      true if the exploration was halted due to a timeout, false otherwise