Package com.google.inject
Class ProvisionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.inject.ProvisionException
- All Implemented Interfaces:
Serializable
Indicates that there was a runtime failure while providing an instance.
- Since:
- 2.0
- Author:
- kevinb@google.com (Kevin Bourrillion), jessewilson@google.com (Jesse Wilson)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionProvisionException
(Iterable<Message> messages) Creates a ProvisionException containingmessages
.ProvisionException
(String message) ProvisionException
(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionReturns messages for the errors that caused this exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ProvisionException
Creates a ProvisionException containingmessages
. -
ProvisionException
-
ProvisionException
-
-
Method Details
-
getErrorMessages
Returns messages for the errors that caused this exception. -
getMessage
- Overrides:
getMessage
in classThrowable
-