Class SolverException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.tweetyproject.lp.asp.reasoner.SolverException
- All Implemented Interfaces:
Serializable
This class models a generic exception for ASP (Answer Set Programming) solvers.
The `SolverException` is thrown when an error occurs in the context of an ASP solver. It contains both a textual message and a corresponding error code to indicate the specific type of error.
Authors: Thomas Vengels, Tim Janus
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Error code indicating that the solver could not be found.static final int
Error code indicating that the input file could not be opened.static final int
Error code indicating a general error.static final int
Error code indicating an I/O failure.static final int
Error code indicating that the binary could not be found.static final int
Error code indicating insufficient permissions to execute the solver.static final int
Error code indicating a syntax error.final int
The error code associated with the exception.final String
The textual message associated with the exception. -
Constructor Summary
ConstructorDescriptionSolverException
(String text, int exceptionCode) Creates a new `SolverException` with the specified message and error code. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
SE_ERROR
public static final int SE_ERRORError code indicating a general error.- See Also:
-
SE_IO_FAILED
public static final int SE_IO_FAILEDError code indicating an I/O failure.- See Also:
-
SE_NO_BINARY
public static final int SE_NO_BINARYError code indicating that the binary could not be found.- See Also:
-
SE_SYNTAX_ERROR
public static final int SE_SYNTAX_ERRORError code indicating a syntax error.- See Also:
-
SE_CANNOT_OPEN_INPUT
public static final int SE_CANNOT_OPEN_INPUTError code indicating that the input file could not be opened.- See Also:
-
SE_CANNOT_FIND_SOLVER
public static final int SE_CANNOT_FIND_SOLVERError code indicating that the solver could not be found.- See Also:
-
SE_PERMISSIONS
public static final int SE_PERMISSIONSError code indicating insufficient permissions to execute the solver.- See Also:
-
solverErrorText
The textual message associated with the exception. -
solverErrorCode
public final int solverErrorCodeThe error code associated with the exception.
-
-
Constructor Details
-
SolverException
Creates a new `SolverException` with the specified message and error code.- Parameters:
text
- the text message describing the exception.exceptionCode
- the error code indicating the type of error.
-
-
Method Details
-
toString
-