public class I18nException extends Exception
Constructor and Description |
---|
I18nException(String message,
String key)
Creates a new exception with an error message.
|
I18nException(String message,
String key,
Throwable cause)
Creates a new exception with an error message and a cause exception.
|
Modifier and Type | Method and Description |
---|---|
String |
getLocalizedMessage() |
void |
showError()
Show the exception error in through the NotificationManager.
|
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public I18nException(String message, String key)
message
- the error messagekey
- the i18n key to localize the exception messagepublic String getLocalizedMessage()
getLocalizedMessage
in class Throwable
public void showError()