thinkmap.xmlconfig
Class XMLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by thinkmap.xmlconfig.XMLException
All Implemented Interfaces:
Serializable

public class XMLException
extends Exception

The base class for all exeptions that pertain to the parsing of XML.

Version:
$Revision $
See Also:
Serialized Form

Field Summary
protected  boolean added
           
protected  String attribute
           
protected  ConfigElement element
           
protected  String elementName
           
protected  int lineNbr
           
protected  String namespace
           
protected  XMLException next
           
static int NO_LINE_NBR
           
protected  String uri
           
 
Constructor Summary
XMLException(int lineNbr, String message)
           
XMLException(int lineNbr, String message, String element)
           
XMLException(int lineNbr, String message, String element, String attribute)
           
XMLException(String s)
           
XMLException(String message, ConfigElement element)
           
XMLException(String message, Throwable error)
           
XMLException(Throwable error)
           
 
Method Summary
 void addException(XMLException ex)
           
 String getAttribute()
           
 ConfigElement getConfigElement()
           
 String getElementName()
           
 int getLineNumber()
          Line in the input stream at which the parser threw the exception
 String getNamespace()
           
 XMLException getNextException()
           
 String getURI()
           
 void setAttribute(String s)
           
 void setConfigElement(ConfigElement element)
           
 void setElement(String s)
           
 void setLineNumber(int i)
           
 void setNamespace(String s)
           
 void setURI(String uri)
           
 String toString()
          Error description
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_LINE_NBR

public static final int NO_LINE_NBR
See Also:
Constant Field Values

added

protected boolean added

lineNbr

protected int lineNbr

next

protected XMLException next

namespace

protected String namespace

elementName

protected String elementName

attribute

protected String attribute

uri

protected String uri

element

protected ConfigElement element
Constructor Detail

XMLException

public XMLException(String message,
                    Throwable error)

XMLException

public XMLException(Throwable error)

XMLException

public XMLException(int lineNbr,
                    String message)

XMLException

public XMLException(int lineNbr,
                    String message,
                    String element)

XMLException

public XMLException(int lineNbr,
                    String message,
                    String element,
                    String attribute)

XMLException

public XMLException(String message,
                    ConfigElement element)

XMLException

public XMLException(String s)
Method Detail

toString

public String toString()
Error description

Overrides:
toString in class Throwable

getLineNumber

public int getLineNumber()
Line in the input stream at which the parser threw the exception


setLineNumber

public void setLineNumber(int i)

getNextException

public XMLException getNextException()

addException

public void addException(XMLException ex)

setElement

public void setElement(String s)

getElementName

public String getElementName()

getAttribute

public String getAttribute()

getNamespace

public String getNamespace()

setAttribute

public void setAttribute(String s)

setNamespace

public void setNamespace(String s)

setURI

public void setURI(String uri)

getURI

public String getURI()

setConfigElement

public void setConfigElement(ConfigElement element)

getConfigElement

public ConfigElement getConfigElement()


Copyright © 2013 Thinkmap, Inc. All Rights Reserved.