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
public final class ProvisionException extends RuntimeException
Indicates that there was a runtime failure while providing an instance.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProvisionException(Iterable<Message> messages)
Creates a ProvisionException containingmessages
.ProvisionException(String message)
ProvisionException(String message, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Message>
getErrorMessages()
Returns messages for the errors that caused this exception.String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getErrorMessages
public Collection<Message> getErrorMessages()
Returns messages for the errors that caused this exception.
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-