Class ATPException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ArityException, ExecutableNotFoundException, FormulaTranslationException, ProverCrashedException, ProverTimeoutException

public class ATPException extends RuntimeException
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:
  • Constructor Details

    • ATPException

      public ATPException(String message, String engineName)
      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

      public ATPException(String message, String engineName, List<String> stdout, List<String> stderr)
      Simple constructor with just message and engine name
    • ATPException

      public ATPException(String message, String engineName, Throwable cause)
      Constructor with message, engine name, and cause
  • Method Details

    • getEngineName

      public String getEngineName()
    • getCommandLine

      public List<String> getCommandLine()
    • getCommandLineString

      public String getCommandLineString()
      Returns:
      The command line as a single string
    • getWorkingDirectory

      public String getWorkingDirectory()
    • getTimeoutMs

      public long getTimeoutMs()
    • getStdout

      public List<String> getStdout()
    • getStderr

      public List<String> 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

      public String getSuggestion()
      Get a suggestion for how to resolve this error. Subclasses should override with more specific suggestions.
      Returns:
      Suggestion text for the user
    • getDetailedMessage

      public String getDetailedMessage()
      Generate a detailed, human-readable error message including context.
      Returns:
      Detailed message suitable for display in UI
    • getStderrString

      public String getStderrString()
      Get stderr as a single string
    • getStdoutString

      public String getStdoutString()
      Get stdout as a single string
    • getResult

      public ATPResult getResult()
    • setResult

      public void setResult(ATPResult result)
    • builder

      public static ATPException.Builder builder()
      Create a new Builder