Package org.mpi_sws.jmc.runtime
Class HaltCheckerException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.mpi_sws.jmc.runtime.HaltCheckerException
- All Implemented Interfaces:
Serializable
Exception thrown to halt execution of the current and all subsequent executions.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic HaltCheckerExceptionConstructs a newHaltCheckerExceptionindicating that the exploration was halted due to an error.static HaltCheckerExceptionConstructs a newHaltCheckerExceptionindicating that the exploration was halted due to an error, with a cause.booleanisOkay()Returns whether the exploration was successful without any errors.booleanReturns whether the exploration was halted due to a timeout.static HaltCheckerExceptionok()Constructs a newHaltCheckerExceptionindicating that the exploration stopped naturally without any errors.static HaltCheckerExceptiontimeout()Constructs a newHaltCheckerExceptionindicating that the exploration was halted due to a timeout.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
ok
Constructs a newHaltCheckerExceptionindicating that the exploration stopped naturally without any errors. -
timeout
Constructs a newHaltCheckerExceptionindicating that the exploration was halted due to a timeout. -
error
Constructs a newHaltCheckerExceptionindicating that the exploration was halted due to an error.- Parameters:
message- the error message
-
error
Constructs a newHaltCheckerExceptionindicating that the exploration was halted due to an error, with a cause.- Parameters:
message- the error messagecause- 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
-