org.picocontainer

Class PicoVerificationException

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 org.picocontainer.defaults.VerifyingVisitor, that will throw this exception.

Since: 1.0

Constructor Summary
PicoVerificationException(List nestedExceptions)
Construct a new exception with a list of exceptions that caused this one.
Method Summary
StringgetMessage()
Return a string listing of all the messages associated with the exceptions that caused this one.
ListgetNestedExceptions()
Retrieve the list of exceptions that caused this one.

Constructor Detail

PicoVerificationException

public PicoVerificationException(List nestedExceptions)
Construct a new exception with a list of exceptions that caused this one.

Parameters: nestedExceptions the exceptions that caused this one.

Method Detail

getMessage

public String getMessage()
Return a string listing of all the messages associated with the exceptions that caused this one.

Returns: a string listing of all the messages associated with the exceptions that caused this one.

getNestedExceptions

public List getNestedExceptions()
Retrieve the list of exceptions that caused this one.

Returns: the list of exceptions that caused this one.