Serializablepublic class CreationException extends RuntimeException
Injector. Includes a list of encountered
errors. Clients should catch this exception, log it, and stop execution.| Constructor | Description |
|---|---|
CreationException(Collection<Message> messages) |
Creates a CreationException containing
messages. |
| Modifier and Type | Method | Description |
|---|---|---|
Collection<Message> |
getErrorMessages() |
Returns messages for the errors that caused this exception.
|
String |
getMessage() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CreationException(Collection<Message> messages)
messages.public Collection<Message> getErrorMessages()
public String getMessage()
getMessage in class ThrowableCopyright © 2006–2018 Google, Inc.. All rights reserved.