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:
Serializable
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 occurring at the verification of the complete container
hierarchy. The verification is normally done with the
VerifyingVisitor
, that will throw this exception.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPicoVerificationException
(List<? extends Throwable> nestedExceptions) Construct a new exception with a list of exceptions that caused this one. -
Method Summary
Modifier and TypeMethodDescriptionReturn a string listing of all the messages associated with the exceptions that caused this one.Retrieve the list of exceptions that caused this one.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PicoVerificationException
Construct a new exception with a list of exceptions that caused this one.- Parameters:
nestedExceptions
- the exceptions that caused this one.
-
-
Method Details
-
getNestedExceptions
Retrieve the list of exceptions that caused this one.- Returns:
- the list of exceptions that caused this one.
-
getMessage
Return a string listing of all the messages associated with the exceptions that caused this one.- Overrides:
getMessage
in classThrowable
- Returns:
- a string listing of all the messages associated with the exceptions that caused this one.
-