com.japisoft.fastparser
Class ParseException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.japisoft.fastparser.ParseException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HandlerException

public class ParseException
extends java.lang.Exception

Created Sat Dec 14 17:22:21 2002

Parser error exception

Version:
1.0
Author:
Alexandre Brillant (abrillant@wanadoo.fr)
See Also:
Serialized Form

Constructor Summary
ParseException(java.lang.String cause)
           
 
Method Summary
 java.lang.String causeBy()
           
 int getCaret()
           
 int getCol()
           
 int getLine()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParseException

public ParseException(java.lang.String cause)
Method Detail

getCaret

public int getCaret()
Returns:
the current error position starting from 0

getLine

public int getLine()
Returns:
the current error line

getCol

public int getCol()
Returns:
the current error colomn

causeBy

public java.lang.String causeBy()
Returns:
a reason about the error

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable