ch.javasoft.xml.config
Class XmlConfigException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by ch.javasoft.xml.config.XmlConfigException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
MissingReferableException, XmlArgException

public class XmlConfigException
extends Exception

The XmlConfigException is thrown if the xml configuration has not been able to parse, or if an error occurred during the resolving phase, e.g. because a parametrized attribute value could not be resolved.

See Also:
Serialized Form

Constructor Summary
XmlConfigException(String message, Node path)
           
XmlConfigException(String message, Node path, Throwable cause)
           
XmlConfigException(String message, String path)
           
XmlConfigException(String message, String path, Throwable cause)
           
 
Method Summary
 String getLocalizedMessage()
           
 String getPath()
          Returns the location path in the xml file
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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
 

Constructor Detail

XmlConfigException

public XmlConfigException(String message,
                          String path)
Parameters:
message - the error message
path - the xpath-like expression to localize the error in the xml file

XmlConfigException

public XmlConfigException(String message,
                          Node path)
Parameters:
message - the error message
path - the node where the error cause is located

XmlConfigException

public XmlConfigException(String message,
                          String path,
                          Throwable cause)
Parameters:
message - the error message
path - the xpath-like expression to localize the error in the xml file
cause - the causing exception

XmlConfigException

public XmlConfigException(String message,
                          Node path,
                          Throwable cause)
Parameters:
message - the error message
path - the node where the error cause is located
cause - the causing exception
Method Detail

getLocalizedMessage

public String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable

getPath

public String getPath()
Returns the location path in the xml file