public class CreationException extends RuntimeException
Injector
. Includes a list of encountered
errors. Clients should catch this exception, log it, and stop execution.Constructor and Description |
---|
CreationException(Collection<Message> messages)
Creates a CreationException containing
messages . |
Modifier and Type | Method and Description |
---|---|
Collection<Message> |
getErrorMessages()
Returns messages for the errors that caused this exception.
|
String |
getMessage() |
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-2016 Google, Inc.. All Rights Reserved.