public interface I18nExceptionI
This common set of default implementations are intended to be added to sets of messages collected into exception classes, which implement this, and separately extend one of the 3 superclasses:
Modifier and Type | Method and Description |
---|---|
Object[] |
getArguments() |
Throwable |
getCause() |
String |
getLocalizedMessage() |
default String |
getLocalizedMessage(Locale aLocale)
Gets the localized detail message for this exception using the specified
Locale . |
String |
getMessage()
Due to the fact that superclass definitions override any default methods, these next must be in
the class definitions as they override other supertype methods.
|
String |
getMessageKey() |
String |
getResourceBundleName() |
default boolean |
hasMessageKey(String messageKey)
Checks if this exception, or any of its root causes, has a particular UIMA message key.
|
String getResourceBundleName()
String getMessageKey()
Object[] getArguments()
Throwable getCause()
String getMessage()
String getLocalizedMessage()
default String getLocalizedMessage(Locale aLocale)
Locale
.aLocale
- the locale to use for localizing the messageLocale
.default boolean hasMessageKey(String messageKey)
messageKey
- to search for in the exception chainCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.