public abstract class ConfigurationException extends Exception
ConfigurationParsingExceptionConfigurationValidationException| 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) |
Collection<String> |
getErrors() |
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)
Copyright © 2021. All rights reserved.