net.charlesames.utility.error
Class XmlNodeError

java.lang.Object
  extended by net.charlesames.utility.error.Error
      extended by net.charlesames.utility.error.XmlNodeError

public class XmlNodeError
extends Error

Class for elements of non-fatal error log, usually maintained by an XML load process.

Author:
Charles Ames

Constructor Summary
XmlNodeError(org.w3c.dom.Node node, java.lang.String message)
          Constructor for XmlNodeError instances
 
Method Summary
 java.lang.String getElementPath()
          Constructs a text string from the node names leading down to the XML element which contained the error.
 org.w3c.dom.Node getNode()
           
 
Methods inherited from class net.charlesames.utility.error.Error
getMessage, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlNodeError

public XmlNodeError(org.w3c.dom.Node node,
                    java.lang.String message)
Constructor for XmlNodeError instances

Parameters:
node - The XML node (part of an XML document) which contained the error.
message - Explanation of an error that was detected.
Method Detail

getElementPath

public java.lang.String getElementPath()
Constructs a text string from the node names leading down to the XML element which contained the error. This path is not necessarily unique.

Returns:
A slash-delimited node-name path.

getNode

public org.w3c.dom.Node getNode()
Returns:
The XML node (part of an XML document) which contained the error.