L10NMessageImpl
public class L10NMessageImpl extends Exception implements L10NMessage
Constructor and Description |
---|
L10NMessageImpl(String msg)
Deprecated.
|
L10NMessageImpl(String rbName,
String errorCode,
Object[] args)
Deprecated.
This constructor is used to pass the localized error message At this
level, the locale of the caller is not known and it is not possible to
throw localized error message at this level.
|
L10NMessageImpl(Throwable ex)
Deprecated.
This constructor is used to extract localized error message from
throwable
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode()
Deprecated.
Returns error code associated with this error message.
|
String |
getL10NMessage(Locale locale)
Deprecated.
Returns localized error message.
|
String |
getMessage()
Deprecated.
Use this method to get error message in default ENGLISH locale.
|
Object[] |
getMessageArgs()
Deprecated.
Returns arguments for formatting this error message.
|
String |
getResourceBundleName()
Deprecated.
Returns resource bundle name associated with this error message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public L10NMessageImpl(String msg)
public L10NMessageImpl(String rbName, String errorCode, Object[] args)
rbName
- ResourceBundle Name to be used for getting localized error
message.errorCode
- Key to resource bundle. You can use ResourceBundle rb =
ResourceBunde.getBundle (rbName,locale); String localizedStr =
rb.getString(errorCode)args
- arguments to message. If it is not present pass the as nullpublic L10NMessageImpl(Throwable ex)
ex
- if the exception message is instance of L10NMessage, the
bundleName,errorCode and args are extracted from throwablepublic String getL10NMessage(Locale locale)
getL10NMessage
in interface L10NMessage
locale
- L10NMessageImpl(String, String, Object[])
public String getResourceBundleName()
getResourceBundleName
in interface L10NMessage
L10NMessageImpl(String, String, Object[])
public String getErrorCode()
getErrorCode
in interface L10NMessage
L10NMessageImpl(String, String, Object[])
public Object[] getMessageArgs()
getMessageArgs
in interface L10NMessage
L10NMessageImpl(String, String, Object[])
public String getMessage()
L10NMessage
getMessage
in interface L10NMessage
getMessage
in class Throwable
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.