org.garret.xmlme
Class XMLException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.garret.xmlme.XMLException
All Implemented Interfaces:
java.io.Serializable

public class XMLException
extends java.lang.RuntimeException

Exception thrown by XML parser

See Also:
Serialized Form

Constructor Summary
XMLException(int line, int column, java.lang.String message)
          Constructor of exception with position in XML buffer
XMLException(java.lang.String message)
          Constructor of exception without position
 
Method Summary
 int getColumn()
          Column where exception happen
 int getLine()
          Line number where exception happen
 java.lang.String getMessageText()
          Get message text
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLException

public XMLException(int line,
                    int column,
                    java.lang.String message)
Constructor of exception with position in XML buffer

Parameters:
line - line number
column - column

XMLException

public XMLException(java.lang.String message)
Constructor of exception without position

Method Detail

getColumn

public int getColumn()
Column where exception happen

Returns:
column number

getLine

public int getLine()
Line number where exception happen

Returns:
line number

getMessageText

public java.lang.String getMessageText()
Get message text

Returns:
reason of exception