com.google.inject
Class CreationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.google.inject.CreationException
All Implemented Interfaces:
java.io.Serializable

public class CreationException
extends java.lang.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.

Author:
crazybob@google.com (Bob Lee)
See Also:
Serialized Form

Constructor Summary
CreationException(java.util.Collection<Message> errorMessages)
          Constructs a new exception for the given errors.
 
Method Summary
 java.util.Collection<Message> getErrorMessages()
          Gets the error messages which resulted in this exception.
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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
 

Constructor Detail

CreationException

public CreationException(java.util.Collection<Message> errorMessages)
Constructs a new exception for the given errors.

Method Detail

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.



Copyright © {inceptionYear}-2008 null. All Rights Reserved.