com.google.inject
Class ContainerCreationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.inject.ContainerCreationException
- All Implemented Interfaces:
- java.io.Serializable
public class ContainerCreationException
- extends java.lang.Exception
Thrown when errors occur while creating a Container
. Includes a
list of encountered errors. Typically, a client should catch this exception,
log it, and stop execution.
- Author:
- crazybob@google.com (Bob Lee)
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ContainerCreationException
public ContainerCreationException(java.util.Collection<Message> errorMessages)
- Constructs a new exception for the given errors.
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable
getErrorMessages
public java.util.Collection<Message> getErrorMessages()
- Gets the error messages which resulted in this exception.
fillInStackTrace
public java.lang.Throwable fillInStackTrace()
- Overrides:
fillInStackTrace
in class java.lang.Throwable