public abstract class ConfigurationException extends Exception
ConfigurationParsingExceptionConfigurationValidationException| Modifier and Type | Field and Description |
|---|---|
protected static String |
NEWLINE
A constant representing a newline sequence.
|
| Constructor and Description |
|---|
ConfigurationException(String path,
Collection<String> errors)
Creates a new ConfigurationException for the given path with the given errors.
|
ConfigurationException(String path,
Collection<String> errors,
Throwable cause)
Creates a new ConfigurationException for the given path with the given errors and cause.
|
| Modifier and Type | Method and Description |
|---|---|
protected static String |
formatMessage(String file,
Collection<String> errors)
Formats a message for the exception reporting the errors that occurred related to the configuration.
|
Collection<String> |
getErrors()
Returns the configuration errors.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected static final String NEWLINE
public ConfigurationException(String path, Collection<String> errors)
path - the bad configuration patherrors - the errors in the pathpublic ConfigurationException(String path, Collection<String> errors, Throwable cause)
path - the bad configuration patherrors - the errors in the pathcause - the cause of the error(s)public Collection<String> getErrors()
protected static String formatMessage(String file, Collection<String> errors)
file - the configuration fileerrors - the configuration errorsCopyright © 2011. All rights reserved.