public class CreationException extends RuntimeException
Injector
. Includes a list
of encountered errors. Typically, a client should catch this exception, log
it, and stop execution.Constructor and Description |
---|
CreationException(Collection<Message> errorMessages)
Constructs a new exception for the given errors.
|
Modifier and Type | Method and Description |
---|---|
Collection<Message> |
getErrorMessages()
Gets the error messages which resulted in this exception.
|
String |
getMessage() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public CreationException(Collection<Message> errorMessages)
public String getMessage()
getMessage
in class Throwable
public Collection<Message> getErrorMessages()
Copyright © 2013. All Rights Reserved.