org.jscience.computing.ai.expertsystem.compiler
Class JeopsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.jscience.computing.ai.expertsystem.compiler.JeopsException
All Implemented Interfaces:
java.io.Serializable

public class JeopsException
extends java.lang.Exception

An exception thrown by JEOPS.

See Also:
Serialized Form

Constructor Summary
JeopsException(int line, int column)
          Constructs a JeopsException with no detail message.
JeopsException(java.lang.String s, int line, int column)
          Constructs a JeopsException with the specified detail message.
 
Method Summary
 int getColumn()
          Returns the column number in the rule file where there is the problem that caused this exception.
 int getLine()
          Returns the line number in the rule file where there is the problem that caused this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JeopsException

public JeopsException(int line,
                      int column)
Constructs a JeopsException with no detail message.

Parameters:
line - the line of the problem.
column - the column of the problem.

JeopsException

public JeopsException(java.lang.String s,
                      int line,
                      int column)
Constructs a JeopsException with the specified detail message.

Parameters:
s - the detail message.
line - the line of the problem.
column - the column of the problem.
Method Detail

getColumn

public int getColumn()
Returns the column number in the rule file where there is the problem that caused this exception.

Returns:
the column number in the rule file where there is the problem that caused this exception.

getLine

public int getLine()
Returns the line number in the rule file where there is the problem that caused this exception.

Returns:
the line number in the rule file where there is the problem that caused this exception.