jfun.yan.xml
Class ConfigurationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by jfun.yan.xml.ConfigurationException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CyclicModuleDependencyException

public class ConfigurationException
extends java.lang.RuntimeException

Represents any error happened during the interpretation of the xml config file.

Author:
Ben Yu Nov 10, 2005 12:25:54 AM
See Also:
Serialized Form

Constructor Summary
ConfigurationException(java.lang.String msg, Location loc)
          Creates a ConfigurationException object.
ConfigurationException(java.lang.String msg, java.lang.Throwable cause, Location loc)
          Creates a ConfigurationException object.
ConfigurationException(java.lang.Throwable cause, Location loc)
          Creates a ConfigurationException object.
 
Method Summary
 Location getLocation()
          Get the location within the config file where the error happens.
 
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
 

Constructor Detail

ConfigurationException

public ConfigurationException(java.lang.String msg,
                              java.lang.Throwable cause,
                              Location loc)
Creates a ConfigurationException object.

Parameters:
msg - the error message.
cause - the causing exception.
loc - the location within the config file.

ConfigurationException

public ConfigurationException(java.lang.String msg,
                              Location loc)
Creates a ConfigurationException object.

Parameters:
msg - the error message.
loc - the location within the config file.

ConfigurationException

public ConfigurationException(java.lang.Throwable cause,
                              Location loc)
Creates a ConfigurationException object.

Parameters:
cause - the causing exception.
loc - the location within the config file.
Method Detail

getLocation

public Location getLocation()
Get the location within the config file where the error happens.