LocalizedExceptionBuilder class.
| Modifier and Type | Field and Description |
|---|---|
| private Throwable | |
| private boolean | |
| private final StringBundle | |
| private String |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static LocalizedExceptionBuilder | Returns: the exception builderthe source of error messages i18n)Creates an exception builder with the given source of error messages. |
| public final T | |
| public final T | Returns: thisthe cause. Must not be null. t)Sets the cause and the message. |
| public final < the exception class U extends Exception> U | Returns: the exceptionthe exception constructor exceptionCtor)Creates an instance of type extending |
| public final T | Returns: thistrue if strings from the associated string bundle
should be used as patterns for message formatting by this builder or
false otherwiseConfigures this builder if strings from the associated string bundle should be used as patterns for message formatting or not. |
| protected final String | |
| public final T | |
| public final T | |
| private T |
| cause | back to summary |
|---|---|
| private Throwable cause | |
| format | back to summary |
|---|---|
| private boolean format | |
| i18n | back to summary |
|---|---|
| private final StringBundle i18n | |
| msg | back to summary |
|---|---|
| private String msg | |
| LocalizedExceptionBuilder | back to summary |
|---|---|
| protected LocalizedExceptionBuilder(StringBundle i18n) | |
| buildLocalizedException | back to summary |
|---|---|
| public static LocalizedExceptionBuilder Creates an exception builder with the given source of error messages.
| |
| cause | back to summary |
|---|---|
| public final T cause(Throwable v) Sets the cause.
| |
| causeAndMessage | back to summary |
|---|---|
| public final T causeAndMessage(Throwable t) Sets the cause and the message. The message is copied from the given
| |
| create | back to summary |
|---|---|
| public final <U extends Exception> U create(BiFunction<String, Throwable, U> exceptionCtor) Creates an instance of type extending
Use
| |
| format | back to summary |
|---|---|
| public final T format(boolean v) Configures this builder if strings from the associated string bundle should
be used as patterns for message formatting or not.
Affects the behavior of the subsequent
| |
| formatString | back to summary |
|---|---|
| protected final String formatString(String keyId, Object... args) | |
| message | back to summary |
|---|---|
| public final T message(String msgId, Object... args) Sets the message. | |
| noformat | back to summary |
|---|---|
| public final T noformat() A shortcut for
| |
| thiz | back to summary |
|---|---|
private T thiz()
| |