Class FormulaTranslationException

All Implemented Interfaces:
Serializable

public class FormulaTranslationException extends ATPException
Exception thrown when a formula cannot be translated from SUO-KIF to a target format (TPTP, TFF, THF).
See Also:
  • Constructor Details

    • FormulaTranslationException

      public FormulaTranslationException(String message, String targetLanguage)
      Create a new FormulaTranslationException
      Parameters:
      message - Error message describing the translation failure
      targetLanguage - The target language (FOF, TFF, THF)
    • FormulaTranslationException

      public FormulaTranslationException(String message, String targetLanguage, int line, int column)
      Create a new FormulaTranslationException with position info
      Parameters:
      message - Error message
      targetLanguage - Target language
      line - Line number where error occurred (1-based)
      column - Column number where error occurred (1-based)
    • FormulaTranslationException

      public FormulaTranslationException(String message, String targetLanguage, Throwable cause)
      Create a new FormulaTranslationException with a cause
    • FormulaTranslationException

      public FormulaTranslationException(String message, String targetLanguage, int line, List<String> stdout, List<String> stderr)
      Create a new FormulaTranslationException with a std errors
  • Method Details

    • getTargetLanguage

      public String getTargetLanguage()
      Returns:
      The target language (FOF, TFF, THF)
    • getErrorLine

      public int getErrorLine()
      Returns:
      The line number where the error occurred, or -1 if unknown
    • getErrorColumn

      public int getErrorColumn()
      Returns:
      The column number where the error occurred, or -1 if unknown
    • hasPosition

      public boolean hasPosition()
      Returns:
      true if position information is available
    • getErrorDetail

      public String getErrorDetail()
      Returns:
      The specific error detail
    • getSuggestion

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

      public String getDetailedMessage()
      Description copied from class: ATPException
      Generate a detailed, human-readable error message including context.
      Overrides:
      getDetailedMessage in class ATPException
      Returns:
      Detailed message suitable for display in UI