net.sf.sfac.lang
Class MultiLingualRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.sf.sfac.lang.MultiLingualRuntimeException
- All Implemented Interfaces:
- Serializable, MultiLingualText
public class MultiLingualRuntimeException
- extends RuntimeException
- implements MultiLingualText
A runtime exception implementing the MultiLingualText interface.
- Author:
- Olivier Berlanger
- See Also:
- Serialized Form
MultiLingualRuntimeException
public MultiLingualRuntimeException(String messageKey,
Object... messageParams)
MultiLingualRuntimeException
public MultiLingualRuntimeException(Throwable cause,
String messageKey,
Object... messageParams)
getMessage
public String getMessage()
- Overrides:
getMessage in class Throwable
getText
public String getText()
- Description copied from interface:
MultiLingualText
- Get the value of the text for the default locale.
- Specified by:
getText in interface MultiLingualText
- Returns:
- the value of the text for the default locale.
getText
public String getText(Locale loc)
- Description copied from interface:
MultiLingualText
- Get the value of the text for the specified locale.
If a specific value for the given locale is not available, this method tries to find the most appropriate translation with
the usual ResourceBundle mechanism.
- Specified by:
getText in interface MultiLingualText
- Returns:
- the value of the text for the specified locale.
getText
public String getText(String localeId)
- Description copied from interface:
MultiLingualText
- Get the value of the text for the specified locale.
If a specific value for the given locale is not available, this method tries to find the most appropriate translation with
the usual ResourceBundle mechanism.
- Specified by:
getText in interface MultiLingualText
- Parameters:
localeId - the ID of the locale (language_country_variant)
- Returns:
- the value of the text for the specified locale.
Copyright © 2012. All Rights Reserved.