Serializable
public 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, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CreationException(Collection<Message> messages)
messages
.public Collection<Message> getErrorMessages()
public String getMessage()
getMessage
in class Throwable
Copyright © 2006–2018 Google, Inc.. All rights reserved.