Package org.gvsig.i18n
Class I18nException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.gvsig.i18n.I18nException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExportLocaleException,InstallLocalesException,LocaleFileNameRequiredException,LocaleLanguageRequiredException,ReadCSVLocalesFileException,UninstallLocaleException
Exception for errors of the I18nManager.
TODO: hacer que extienda BaseException cuando se pase a gvSIG trunk.
- Author:
- David Cervera
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionI18nException(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. -
Method Summary
Modifier and TypeMethodDescriptionvoidShow the exception error in through the NotificationManager.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
I18nException
Creates a new exception with an error message.- Parameters:
message- the error messagekey- the i18n key to localize the exception message
-
I18nException
Creates a new exception with an error message and a cause exception.- Parameters:
message- the error messagekey- the i18n key to localize the exception messagecause- the error that caused the exception
-
-
Method Details
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classThrowable
-
showError
public void showError()Show the exception error in through the NotificationManager.
-