Package 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 ofPicoException
that is thrown when aPicoContainer
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 occurring at the verification of the complete container hierarchy. The verification is normally done with theVerifyingVisitor
, that will throw this exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PicoVerificationException(java.util.List<? extends java.lang.Throwable> nestedExceptions)
Construct a new exception with a list of exceptions that caused this one.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
Return a string listing of all the messages associated with the exceptions that caused this one.java.util.List<java.lang.Throwable>
getNestedExceptions()
Retrieve the list of exceptions that caused this one.
-
-
-
Method Detail
-
getNestedExceptions
public java.util.List<java.lang.Throwable> 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 classjava.lang.Throwable
- Returns:
- a string listing of all the messages associated with the exceptions that caused this one.
-
-