org.kxml.io
Class ParseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.io.IOException
              extended byorg.kxml.io.ParseException
All Implemented Interfaces:
java.io.Serializable

public class ParseException
extends java.io.IOException

a possibly chained exception, indicatin a line and column number.

See Also:
Serialized Form

Field Summary
protected  java.lang.Exception chained
           
protected  int columnNumber
           
protected  int lineNumber
           
 
Constructor Summary
ParseException(java.lang.String msg, java.lang.Exception chained, int lineNumber, int columnNumber)
          Builds a new ParseException with the given message text, chained Exception, lineNumber, columNumber.
 
Method Summary
 int getLineNumber()
           
 void printStackTrace()
          prints the own stack trace followed by the stack trace of the original exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lineNumber

protected int lineNumber

columnNumber

protected int columnNumber

chained

protected java.lang.Exception chained
Constructor Detail

ParseException

public ParseException(java.lang.String msg,
                      java.lang.Exception chained,
                      int lineNumber,
                      int columnNumber)
Builds a new ParseException with the given message text, chained Exception, lineNumber, columNumber. Set message text or chained exception to null and lineNumber and columNumber to -1 if not applicable.

Method Detail

printStackTrace

public void printStackTrace()
prints the own stack trace followed by the stack trace of the original exception.


getLineNumber

public int getLineNumber()