anon.util
Class XMLParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by anon.util.XMLParseException
All Implemented Interfaces:
java.io.Serializable

public class XMLParseException
extends java.lang.Exception

This exception is thrown if an error occurs while parsing an XML structure.

Author:
Wendolsky
See Also:
Serialized Form

Field Summary
static java.lang.String NODE_NULL_TAG
          A constant that means that a node to parse was null.
static java.lang.String ROOT_TAG
          A constant that means that the document to parse has a wrong root tag.
private static long serialVersionUID
          serial version UID
 
Constructor Summary
XMLParseException(java.lang.String a_strTagName)
          Creates a new exception.
XMLParseException(java.lang.String a_strTagName, java.lang.String a_strMessage)
          Creates a new exception.
 
Method Summary
private static java.lang.String getMessage(java.lang.String a_strMessage)
           
private static java.lang.String parseTagName(java.lang.String a_strTagName)
          Creates an error message from the given tag name.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
serial version UID

See Also:
Constant Field Values

ROOT_TAG

public static final java.lang.String ROOT_TAG
A constant that means that the document to parse has a wrong root tag.

See Also:
Constant Field Values

NODE_NULL_TAG

public static final java.lang.String NODE_NULL_TAG
A constant that means that a node to parse was null.

See Also:
Constant Field Values
Constructor Detail

XMLParseException

public XMLParseException(java.lang.String a_strTagName,
                         java.lang.String a_strMessage)
Creates a new exception.

Parameters:
a_strTagName - the name of the tag where the exception occurred
a_strMessage - an additional message for a detailed description of this exception

XMLParseException

public XMLParseException(java.lang.String a_strTagName)
Creates a new exception.

Parameters:
a_strTagName - the name of the tag where the exception occured
Method Detail

getMessage

private static java.lang.String getMessage(java.lang.String a_strMessage)

parseTagName

private static java.lang.String parseTagName(java.lang.String a_strTagName)
Creates an error message from the given tag name.

Parameters:
a_strTagName - a tag name to parse
Returns:
the parsed tag name