public class InvalidValueException
extends de.espirit.firstspirit.client.common.locale.LocalizableException
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FALLBACK_FORMAT
Fallback message.
|
static String |
INVALID_VALUE_DESCRIPTOR
Resource key for error message.
|
Constructor and Description |
---|
InvalidValueException(EditorValue<?> editorValue)
Constructor on editor only taking default error key.
|
InvalidValueException(EditorValue<?> editorValue,
String descriptor)
Constructor on editor and descriptor.
|
InvalidValueException(EditorValue<?> editorValue,
String descriptor,
String fallbackFormat)
Constructor on editor, descriptor and fallback.
|
Modifier and Type | Method and Description |
---|---|
String |
getEditorLabel()
Provides the editor's label.
|
String |
getEditorName()
Provides the editor's variable name.
|
EditorValue<?> |
getEditorValue()
Provides the editor.
|
String |
getMessage()
Provides the formatted error message.
|
String |
getMessage(ResourceBundle bundle)
Provides the formatted error message based on the given resource bundle.
|
static Map<String,InvalidValueException> |
mappedExceptions(Iterator<Throwable> iterator)
Detect all
InvalidValueException s provided by the given iterator and return them as named map. |
addParameter, getDescriptor, getHeadline, getParams, isRecoverable, setHeadline, setRecoverable, toFormattedString
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final String INVALID_VALUE_DESCRIPTOR
public static final String DEFAULT_FALLBACK_FORMAT
public InvalidValueException(EditorValue<?> editorValue, String descriptor)
editorValue
- The editor.descriptor
- The resource key.public InvalidValueException(EditorValue<?> editorValue, String descriptor, String fallbackFormat)
editorValue
- The editor.descriptor
- The resource key.fallbackFormat
- The fallback formatting text.public InvalidValueException(EditorValue<?> editorValue)
editorValue
- The editor.public String getMessage()
getMessage
in class Throwable
public String getMessage(ResourceBundle bundle)
bundle
- A resource bundle.@Nullable public EditorValue<?> getEditorValue()
public String getEditorLabel()
public String getEditorName()
public static Map<String,InvalidValueException> mappedExceptions(Iterator<Throwable> iterator)
InvalidValueException
s provided by the given iterator and return them as named map.iterator
- The iterator to scan.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210