|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.codehaus.dna.ConfigurationException
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.
Constructor Summary | |
ConfigurationException(java.lang.String message,
java.lang.String path,
java.lang.String location)
Create configuration exception with specified message, path and location. |
|
ConfigurationException(java.lang.String message,
java.lang.String path,
java.lang.String location,
java.lang.Throwable cause)
Create configuration exception with specified message, path, location and cause. |
|
ConfigurationException(java.lang.String message,
java.lang.Throwable cause)
Create configuration exception with specified message and cause. |
Method Summary | |
java.lang.Throwable |
getCause()
Return the exception that caused this exception if any. |
java.lang.String |
getLocation()
Return a string describing the location of the configuration element that caused the exception. |
java.lang.String |
getPath()
The xpath to the configuration element that caused the exception. |
java.lang.String |
toString()
Return the string representation of exception. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ConfigurationException(java.lang.String message, java.lang.String path, java.lang.String location)
message
- the messagepath
- the pathlocation
- the locationpublic ConfigurationException(java.lang.String message, java.lang.Throwable cause)
message
- the messagecause
- the causepublic ConfigurationException(java.lang.String message, java.lang.String path, java.lang.String location, java.lang.Throwable cause)
message
- the messagepath
- the pathlocation
- the locationcause
- the causeMethod Detail |
public java.lang.String getPath()
public java.lang.String getLocation()
public java.lang.Throwable getCause()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |