It contains an error message and an optional advice message on how to correct the error.
The preferred way to construct instances of this class is to use
build(StringBundle), or build(StringBundle, Throwable),
or build(StringBundle, String, Object. methods.
StringBundle i18n = getStringBundle(); // Some way to obtain a string bundle with localized messages
throw ConfigException.build(i18n)
.message("error.no.name")
.advice("error.no.name.advice")
.create();
| Modifier and Type | Class and Description |
|---|---|
| public static class | ConfigException.
Builds |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ConfigException. | |
| public static ConfigException. | |
| public static ConfigException. | |
| public String |
| advice | back to summary |
|---|---|
| private final String advice | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides jdk. | |
| ConfigException | back to summary |
|---|---|
| public ConfigException(String msg, String advice) | |
| ConfigException | back to summary |
|---|---|
| public ConfigException(String msg, String advice, Throwable cause) | |
| ConfigException | back to summary |
|---|---|
| public ConfigException(String msg, Throwable cause) | |
| build | back to summary |
|---|---|
| public static ConfigException. | |
| build | back to summary |
|---|---|
| public static ConfigException. | |
| build | back to summary |
|---|---|
| public static ConfigException. | |
| getAdvice | back to summary |
|---|---|
| public String getAdvice() | |
ConfigException instances.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ConfigException. | |
| public ConfigException | |
| private ConfigException |
| advice | back to summary |
|---|---|
| private String advice | |
| Builder | back to summary |
|---|---|
| private Builder(StringBundle i18n) | |
| advice | back to summary |
|---|---|
| public ConfigException. | |
| create | back to summary |
|---|---|
| public ConfigException create() | |
| create | back to summary |
|---|---|
| private ConfigException create(String msg, Throwable cause) | |