com.ugos.JIProlog.engine
Class JIPParameterTypeException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.ugos.JIProlog.engine.JIPRuntimeException
|
+--com.ugos.JIProlog.engine.JIPParameterTypeException
- All Implemented Interfaces:
- java.io.Serializable
- public class JIPParameterTypeException
- extends JIPRuntimeException
Exception raised when a built-in predicate find a parameter of unexpected type.
- Version:
- 3.0
- Author:
- Ugo Chirico 2005
Home Page: http://www.ugosweb.com/jiprolog
- See Also:
JIPRuntimeException,
Serialized Form
|
Method Summary |
JIPTerm |
getTerm()
Gets the error term associated to this exception |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UNDEFINED
public static final int UNDEFINED
- See Also:
- Constant Field Values
FUNCTOR
public static final int FUNCTOR
- See Also:
- Constant Field Values
ATOM
public static final int ATOM
- See Also:
- Constant Field Values
ATOM_OR_STRING
public static final int ATOM_OR_STRING
- See Also:
- Constant Field Values
INTEGER
public static final int INTEGER
- See Also:
- Constant Field Values
FLOAT
public static final int FLOAT
- See Also:
- Constant Field Values
PREDICATE_INDICATOR
public static final int PREDICATE_INDICATOR
- See Also:
- Constant Field Values
COMPOUND
public static final int COMPOUND
- See Also:
- Constant Field Values
LIST
public static final int LIST
- See Also:
- Constant Field Values
COMPARATION_OPERATOR
public static final int COMPARATION_OPERATOR
- See Also:
- Constant Field Values
CALLABLE
public static final int CALLABLE
- See Also:
- Constant Field Values
NUMERIC_EXPRESSION
public static final int NUMERIC_EXPRESSION
- See Also:
- Constant Field Values
JIPParameterTypeException
public JIPParameterTypeException(int nParam,
int nExpectedType)
- Constructs a new JIPParameterTypeException
- Parameters:
nParam - the index of the bad parameternExpectedType - the type of the expected term
JIPParameterTypeException
public JIPParameterTypeException()
- Constructs a new JIPParameterTypeException
getTerm
public JIPTerm getTerm()
- Gets the error term associated to this exception
- Overrides:
getTerm in class JIPRuntimeException
- Returns:
- JIPTerm object associated to this exception