public interface LocalizedException
getMessage()
returns the message in the default locale.
In a client-server architecture, this is often the locale on the server side.getLocalizedMessage()
returns the message in a locale that depends on the context
in which the exception has been thrown. This is often the locale used by a Format
or DataStore
instance,
and can be presumed to be the locale on the client side.getInternationalMessage()
may return the message in arbitrary locale (optional operation).
This method is specific to Apache SIS.LocalizedException
may use any locale (not necessarily the default one),
and LocalizedException
used as wrappers around
other exception usually lost their localization capability.Exceptions.getLocalizedMessage(Throwable, Locale)
,
DataStore.setLocale(Locale)
Defined in the sis-utility
module
Modifier and Type | Method and Description |
---|---|
InternationalString |
getInternationalMessage()
If this exception is capable to return the message in various locales, returns that message.
|
String |
getLocalizedMessage()
Returns the message in the locale that depends on the context in which this exception has been thrown.
|
String |
getMessage()
Returns the message in the default locale.
|
String getMessage()
String getLocalizedMessage()
InternationalString getInternationalMessage()
null
.null
if this exception can not produce international message.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.