net.sf.xolite
Class XMLParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sf.xolite.XMLParseException
All Implemented Interfaces:
Serializable

public class XMLParseException
extends Exception

Exception for XML parsing.
This exception allow to define the location of the bad tokens that caused the exception in the input XML. This location can be expressed as two int (line, row) or as a plain string.

See Also:
Serialized Form

Constructor Summary
XMLParseException(String message)
           
XMLParseException(String message, Throwable cause)
           
 
Method Summary
 int getColumn()
           
 int getLine()
           
 String getMessage()
           
 String getSource()
           
 void setLocation(int newLine, int newColumn)
           
 void setSource(String sourceDescription)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

XMLParseException

public XMLParseException(String message)

XMLParseException

public XMLParseException(String message,
                         Throwable cause)
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

setSource

public void setSource(String sourceDescription)

setLocation

public void setLocation(int newLine,
                        int newColumn)

getSource

public String getSource()

getLine

public int getLine()

getColumn

public int getColumn()


Copyright © 2012. All Rights Reserved.