| java.lang.Object java.lang.Throwable java.lang.Exception org.codehaus.dna.ConfigurationException
ConfigurationException | public class ConfigurationException extends Exception (Code) | | The ConfigurationException is used to signal a problem
with the configuration object. The configuration object
may have malformed data (ie expected an integer but got
a string), have missing data (ie no attribute with specified
name) or may fail to be valid via some other mechanism.
version: $Revision: 1.2 $ $Date: 2004/05/01 09:51:48 $ |
Method Summary | |
public Throwable | getCause() Return the exception that caused this exception if any. | public String | getLocation() Return a string describing the location of the configuration
element that caused the exception. | public String | getPath() The xpath to the configuration element that
caused the exception. | public String | toString() Return the string representation of exception. |
ConfigurationException | public ConfigurationException(String message, String path, String location)(Code) | | Create configuration exception with specified message,
path and location.
Parameters: message - the message Parameters: path - the path Parameters: location - the location |
ConfigurationException | public ConfigurationException(String message, Throwable cause)(Code) | | Create configuration exception with specified
message and cause.
Parameters: message - the message Parameters: cause - the cause |
ConfigurationException | public ConfigurationException(String message, String path, String location, Throwable cause)(Code) | | Create configuration exception with specified message,
path, location and cause.
Parameters: message - the message Parameters: path - the path Parameters: location - the location Parameters: cause - the cause |
getCause | public Throwable getCause()(Code) | | Return the exception that caused this exception if any.
the exception that caused this exception if any. |
getLocation | public String getLocation()(Code) | | Return a string describing the location of the configuration
element that caused the exception. This may be null
or empty if not relevent or not known. The location is usally
formatted according to uri[:line number[:column number]].
Note that the line and column numbers may not be present.
the location where exception occured |
getPath | public String getPath()(Code) | | The xpath to the configuration element that
caused the exception. This may be null or empty
if not relevent or not known.
the xpath to element that caused exception |
toString | public String toString()(Code) | | Return the string representation of exception.
the string representation of exception. |
|
|