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

Field Summary
static int ATOM
           
static int ATOM_OR_STRING
           
static int CALLABLE
           
static int COMPARATION_OPERATOR
           
static int COMPOUND
           
static int FLOAT
           
static int FUNCTOR
           
static int INTEGER
           
static int LIST
           
static int NUMERIC_EXPRESSION
           
static int PREDICATE_INDICATOR
           
static int UNDEFINED
           
 
Fields inherited from class com.ugos.JIProlog.engine.JIPRuntimeException
ID_UNKNOWN_EXCEPTION, ID_USER_EXCEPTION
 
Constructor Summary
JIPParameterTypeException()
          Constructs a new JIPParameterTypeException
JIPParameterTypeException(int nParam, int nExpectedType)
          Constructs a new JIPParameterTypeException
 
Method Summary
 JIPTerm getTerm()
          Gets the error term associated to this exception
 
Methods inherited from class com.ugos.JIProlog.engine.JIPRuntimeException
getErrorNumber, getFileName, getLineNumber, getMessage, getPosition, printPrologStackTrace, printPrologStackTrace, printPrologStackTrace, setTerm
 
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
 

Field Detail

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
Constructor Detail

JIPParameterTypeException

public JIPParameterTypeException(int nParam,
                                 int nExpectedType)
Constructs a new JIPParameterTypeException

Parameters:
nParam - the index of the bad parameter
nExpectedType - the type of the expected term

JIPParameterTypeException

public JIPParameterTypeException()
Constructs a new JIPParameterTypeException

Method Detail

getTerm

public JIPTerm getTerm()
Gets the error term associated to this exception

Overrides:
getTerm in class JIPRuntimeException
Returns:
JIPTerm object associated to this exception