Package com.articulate.sigma.tp
Class ArityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.articulate.sigma.tp.ATPException
com.articulate.sigma.tp.ArityException
- All Implemented Interfaces:
Serializable
Exception thrown when a formula has an incorrect arity for a predicate.
This occurs when a predicate is used with the wrong number of arguments.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.articulate.sigma.tp.ATPException
ATPException.Builder -
Constructor Summary
ConstructorsConstructorDescriptionArityException(String formula, String predicateName) Create a new ArityException -
Method Summary
Modifier and TypeMethodDescriptionGenerate a detailed, human-readable error message including context.Get a suggestion for how to resolve this error.Methods 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
-
Constructor Details
-
ArityException
Create a new ArityException- Parameters:
formula- The formula containing the arity errorpredicateName- The predicate with incorrect arity
-
-
Method Details
-
getFormula
- Returns:
- The formula containing the arity error
-
getPredicateName
- Returns:
- The predicate name with incorrect arity
-
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
-