Package com.articulate.sigma.tp
Class ProverCrashedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.articulate.sigma.tp.ATPException
com.articulate.sigma.tp.ProverCrashedException
- All Implemented Interfaces:
Serializable
Exception thrown when an ATP process crashes or is killed by a signal.
This typically indicates either:
- A malformed input formula that caused a segmentation fault
- Memory exhaustion leading to OOM killer
- External termination of the process
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.articulate.sigma.tp.ATPException
ATPException.Builder -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProverCrashedException(String engineName, int exitCode) Create a new ProverCrashedException with just exit codeProverCrashedException(String engineName, int exitCode, List<String> stdout, List<String> stderr, ATPResult result) Create a new ProverCrashedException -
Method Summary
Modifier and TypeMethodDescriptionGenerate a detailed, human-readable error message including context.intintGet a suggestion for how to resolve this error.booleanbooleanbooleanbooleanbooleanMethods inherited from class com.articulate.sigma.tp.ATPException
builder, getCommandLine, getCommandLineString, getEngineName, getResult, getStderr, getStderrString, getStdout, getStdoutString, getTimeoutMs, getWorkingDirectory, hasStderr, hasStdout, setResultMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
SIGHUP
public static final int SIGHUP- See Also:
-
SIGINT
public static final int SIGINT- See Also:
-
SIGQUIT
public static final int SIGQUIT- See Also:
-
SIGABRT
public static final int SIGABRT- See Also:
-
SIGKILL
public static final int SIGKILL- See Also:
-
SIGSEGV
public static final int SIGSEGV- See Also:
-
SIGTERM
public static final int SIGTERM- See Also:
-
SIGXCPU
public static final int SIGXCPU- See Also:
-
-
Constructor Details
-
ProverCrashedException
public ProverCrashedException(String engineName, int exitCode, List<String> stdout, List<String> stderr, ATPResult result) Create a new ProverCrashedException- Parameters:
engineName- The name of the proverexitCode- The process exit codestdout- The captured stdout lines (may be partial)stderr- The captured stderr lines (may be partial)
-
ProverCrashedException
Create a new ProverCrashedException with just exit code
-
-
Method Details
-
getExitCode
public int getExitCode()- Returns:
- The process exit code
-
getSignalName
- Returns:
- The signal name if killed by signal, null otherwise
-
getSignalNumber
public int getSignalNumber()- Returns:
- The signal number if killed by signal, -1 otherwise
-
wasKilledBySignal
public boolean wasKilledBySignal()- Returns:
- true if the process was killed by a signal
-
wasSegmentationFault
public boolean wasSegmentationFault()- Returns:
- true if this was a segmentation fault
-
wasAborted
public boolean wasAborted()- Returns:
- true if this was an abort (often assertion failure)
-
wasForciblyStopped
public boolean wasForciblyStopped()- Returns:
- true if the process was forcibly killed (SIGKILL/SIGTERM)
-
wasCpuLimitExceeded
public boolean wasCpuLimitExceeded()- Returns:
- true if CPU time limit was exceeded
-
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
-