Package com.articulate.sigma.tp
Class ProverTimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.articulate.sigma.tp.ATPException
com.articulate.sigma.tp.ProverTimeoutException
- All Implemented Interfaces:
Serializable
Exception thrown when an ATP process times out.
Distinguishes between "hard" timeouts (we killed the process)
and "soft" timeouts (the prover reported timeout via SZS status).
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.articulate.sigma.tp.ATPException
ATPException.Builder -
Constructor Summary
ConstructorsConstructorDescriptionProverTimeoutException(String engineName, long timeoutMs, long elapsedMs, boolean hardTimeout) Create a new ProverTimeoutExceptionProverTimeoutException(String engineName, long timeoutMs, long elapsedMs, boolean hardTimeout, List<String> stdout, List<String> stderr, ATPResult result) Create a new ProverTimeoutException with output -
Method Summary
Modifier and TypeMethodDescriptionGenerate a detailed, human-readable error message including context.longlongGet a suggestion for how to resolve this error.longlongbooleanbooleanMethods inherited from class com.articulate.sigma.tp.ATPException
builder, getCommandLine, getCommandLineString, getEngineName, getResult, getStderr, getStderrString, getStdout, getStdoutString, getWorkingDirectory, hasStderr, hasStdout, setResultMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ProverTimeoutException
public ProverTimeoutException(String engineName, long timeoutMs, long elapsedMs, boolean hardTimeout) Create a new ProverTimeoutException- Parameters:
engineName- The name of the provertimeoutMs- The configured timeout in millisecondselapsedMs- The actual elapsed time in millisecondshardTimeout- true if we had to kill the process, false if prover self-reported
-
ProverTimeoutException
public ProverTimeoutException(String engineName, long timeoutMs, long elapsedMs, boolean hardTimeout, List<String> stdout, List<String> stderr, ATPResult result) Create a new ProverTimeoutException with output
-
-
Method Details
-
getTimeoutMs
public long getTimeoutMs()- Overrides:
getTimeoutMsin classATPException- Returns:
- The configured timeout in milliseconds
-
getTimeoutSeconds
public long getTimeoutSeconds()- Returns:
- The configured timeout in seconds
-
getElapsedMs
public long getElapsedMs()- Returns:
- The actual elapsed time in milliseconds
-
getElapsedSeconds
public long getElapsedSeconds()- Returns:
- The actual elapsed time in seconds
-
isHardTimeout
public boolean isHardTimeout()- Returns:
- true if this was a "hard" timeout (we killed the process)
-
isSoftTimeout
public boolean isSoftTimeout()- Returns:
- true if the prover reported timeout itself (soft timeout)
-
getSuggestion
Description copied from class:ATPExceptionGet a suggestion for how to resolve this error. Subclasses should override with more specific suggestions.- Overrides:
getSuggestionin classATPException- Returns:
- Suggestion text for the user
-
getDetailedMessage
Description copied from class:ATPExceptionGenerate a detailed, human-readable error message including context.- Overrides:
getDetailedMessagein classATPException- Returns:
- Detailed message suitable for display in UI
-