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
Creates a CreationException containing
messages.
|
| Modifier and Type | Method and Description |
|---|---|
Collection |
getErrorMessages()
Returns messages for the errors that caused this exception.
|
String |
getMessage()
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CreationException(Collection<Message > messages)
messages.
public Collection<Message > getErrorMessages()
public StringgetMessage()