com.google.inject
Class CreationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.inject.CreationException
- All Implemented Interfaces:
- Serializable
public class CreationException
- extends RuntimeException
Thrown when errors occur while creating a Injector
. Includes a list
of encountered errors. Typically, a client should catch this exception, log
it, and stop execution.
- See Also:
- Serialized Form
CreationException
public CreationException(Collection<Message> errorMessages)
- Constructs a new exception for the given errors.
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
getErrorMessages
public Collection<Message> getErrorMessages()
- Gets the error messages which resulted in this exception.
Copyright 2007 Google Inc. All Rights Reserved.