org.picocontainer
Class PicoVerificationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.picocontainer.PicoException
org.picocontainer.PicoVerificationException
- All Implemented Interfaces:
- java.io.Serializable
public class PicoVerificationException
- extends PicoException
Subclass of PicoException
that is thrown when a PicoContainer
hierarchy
cannot be verified. A failing verification is caused by ambuigities or missing dependencies
between the registered components and their parameters. This exception is designed as a
collector for all Exceptions occuring at the verification of the complete container
hierarchy. The verification is normally done with the
VerifyingVisitor
, that will throw this exception.
- Since:
- 1.0
- Version:
- $Revision: 1801 $
- See Also:
- Serialized Form
Field Summary |
private java.util.List |
nestedExceptions
The exceptions that caused this one. |
Constructor Summary |
PicoVerificationException(java.util.List nestedExceptions)
Construct a new exception with a list of exceptions that caused this one. |
Method Summary |
java.lang.String |
getMessage()
Return a string listing of all the messages associated with the exceptions that caused
this one. |
java.util.List |
getNestedExceptions()
Retrieve the list of exceptions that caused this one. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
nestedExceptions
private final java.util.List nestedExceptions
- The exceptions that caused this one.
PicoVerificationException
public PicoVerificationException(java.util.List nestedExceptions)
- Construct a new exception with a list of exceptions that caused this one.
- Parameters:
nestedExceptions
- the exceptions that caused this one.
getNestedExceptions
public java.util.List getNestedExceptions()
- Retrieve the list of exceptions that caused this one.
- Returns:
- the list of exceptions that caused this one.
getMessage
public java.lang.String getMessage()
- Return a string listing of all the messages associated with the exceptions that caused
this one.
- Overrides:
getMessage
in class java.lang.Throwable
- Returns:
- a string listing of all the messages associated with the exceptions that caused
this one.