public interface RTMLocalizableThrowable
LocalizableMessage
object which encapsulates all the information
required to set the message locale even after construction time and hence
allows to derive localized messages for different Locale
s.Modifier and Type | Method and Description |
---|---|
Class<? extends Throwable> |
getJavaThrowableClass()
Some throwables only represent localizable versions of native Java throwables (e.g.
|
LocalizableMessage |
getLocalizableMessage()
Returns the encapsulated
LocalizableMessage object carried by this throwable. |
void |
setLocale(Locale locale)
Sets the
Locale used to derive the localized message of the throwable. |
LocalizableMessage getLocalizableMessage()
LocalizableMessage
object carried by this throwable.LocalizableMessage
object carried by this throwableClass<? extends Throwable> getJavaThrowableClass()
RTMIllegalArgumentException
). As throwable localization is currently bound
to the JVM that the server is running in, any such throwable is transformed into
the corresponding Java throwable. This method returns the Class
object
of this Java throwable.Class
object of the Java throwable corresponding to this localizable throwable