Package com.articulate.sigma.tp
Class ATPException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.articulate.sigma.tp.ATPException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ArityException,ExecutableNotFoundException,FormulaTranslationException,ProverCrashedException,ProverTimeoutException
Base exception class for all ATP (Automated Theorem Prover) related errors.
Provides rich context about the execution environment and any available output.
Extends RuntimeException so these exceptions don't need to be declared in method
signatures, allowing them to propagate through existing code without modification.
Subclasses include:
- ExecutableNotFoundException: Prover binary not found/executable
- ProverCrashedException: Process killed by signal (SIGSEGV, etc.)
- ProverTimeoutException: Explicit timeout exception
- FormulaTranslationException: SUMO-to-TPTP translation failure
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for constructing ATPException with full context -
Constructor Summary
ConstructorsConstructorDescriptionATPException(String message, String engineName) Simple constructor with just message and engine nameATPException(String message, String engineName, ATPResult result, List<String> stdout, List<String> stderr) Simple constructor with just message and engine nameATPException(String message, String engineName, Throwable cause) Constructor with message, engine name, and causeSimple constructor with just message and engine name -
Method Summary
Modifier and TypeMethodDescriptionstatic ATPException.Builderbuilder()Create a new BuilderGenerate a detailed, human-readable error message including context.Get stderr as a single stringGet stdout as a single stringGet a suggestion for how to resolve this error.longbooleanbooleanvoidMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ATPException
Simple constructor with just message and engine name -
ATPException
public ATPException(String message, String engineName, ATPResult result, List<String> stdout, List<String> stderr) Simple constructor with just message and engine name -
ATPException
Simple constructor with just message and engine name -
ATPException
Constructor with message, engine name, and cause
-
-
Method Details
-
getEngineName
-
getCommandLine
-
getCommandLineString
- Returns:
- The command line as a single string
-
getWorkingDirectory
-
getTimeoutMs
public long getTimeoutMs() -
getStdout
-
getStderr
-
hasStderr
public boolean hasStderr()- Returns:
- true if there is stderr output available
-
hasStdout
public boolean hasStdout()- Returns:
- true if there is stdout output available
-
getSuggestion
Get a suggestion for how to resolve this error. Subclasses should override with more specific suggestions.- Returns:
- Suggestion text for the user
-
getDetailedMessage
Generate a detailed, human-readable error message including context.- Returns:
- Detailed message suitable for display in UI
-
getStderrString
Get stderr as a single string -
getStdoutString
Get stdout as a single string -
getResult
-
setResult
-
builder
Create a new Builder
-