public class MessageTranslator
extends java.lang.Object
| Constructor and Description |
|---|
MessageTranslator() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getDetailMessage(java.lang.Throwable t,
java.util.Locale locale)
Obtém o tipo da exceção.
|
static java.lang.String |
getString(java.lang.String key,
java.util.Locale locale)
Obtém o texto traduzido no idioma da sessão corrente.
|
static java.lang.String |
getString(java.lang.String key,
java.lang.Object[] args,
java.util.Locale locale)
Obtém o texto traduzido no idioma da sessão corrente.
|
public static java.lang.String getString(java.lang.String key,
java.util.Locale locale)
locale - o Locale para tradução dos textoskey - a chave no arquivo de bundle de idiomapublic static java.lang.String getString(java.lang.String key,
java.lang.Object[] args,
java.util.Locale locale)
locale - o Locale para tradução dos textoskey - a chave no arquivo de bundle de idiomaargs - os argumentos para a formatação do textopublic static java.lang.String getDetailMessage(java.lang.Throwable t,
java.util.Locale locale)
t - a exceçãolocale - o Locale para tradução dos textosCopyright © 2016. All Rights Reserved.