com.ugos.JIProlog.engine
Class JIPErrorEvent

java.lang.Object
  |
  +--com.ugos.JIProlog.engine.JIPEvent
        |
        +--com.ugos.JIProlog.engine.JIPErrorEvent

public class JIPErrorEvent
extends JIPEvent

JIPErrorEvent is used to notify an error or an exception occured during execution.
JIPEventListener receives a JIPErrorEvent object in the method errorNotified

Version:
2.0
Author:
Ugo Chirico 2002
Home Page: http://www.ugosweb.com/jiprolog
See Also:
JIPEventListener

Field Summary
static int ID_ERROR
          ID of an Error Event
 
Fields inherited from class com.ugos.JIProlog.engine.JIPEvent
ID_CLOSE, ID_END, ID_MORE, ID_OPEN, ID_SINGLETONVARS, ID_SOLUTION, ID_UNDEFPREDICATE, ID_USERINPUTDONE, ID_WAITFORUSERINPUT
 
Method Summary
 java.lang.String getError()
          Gets the error message
 int getErrorNumber()
          Gets the error number
 JIPRuntimeException getException()
          Gets the error number
 java.lang.String getFileName()
          Gets the file name where the error was raised
 int getLineNumber()
          Gets the line number where the error was raised
 int getPosition()
          Gets the position where the error was raised
 java.lang.String toString()
          Gets a string representation of this JIPErrorEvent object
 
Methods inherited from class com.ugos.JIProlog.engine.JIPEvent
consume, getID, getQueryHandle, getSource, getTerm, when
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID_ERROR

public static final int ID_ERROR
ID of an Error Event

See Also:
Constant Field Values
Method Detail

getError

public java.lang.String getError()
Gets the error message

Returns:
string representation of the error occurred

getFileName

public java.lang.String getFileName()
Gets the file name where the error was raised

Returns:
the file name where the exception was raised

getLineNumber

public int getLineNumber()
Gets the line number where the error was raised

Returns:
the line number where the exception was raised

getPosition

public int getPosition()
Gets the position where the error was raised

Returns:
the position where the exception was raised

getErrorNumber

public int getErrorNumber()
Gets the error number

Returns:
number of the error occurred

getException

public JIPRuntimeException getException()
Gets the error number

Returns:
number of the error occurred

toString

public java.lang.String toString()
Gets a string representation of this JIPErrorEvent object

Overrides:
toString in class java.lang.Object
Returns:
string representation of this JIPErrorEvent object