Package com.iizix
Class LanguageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.iizix.LanguageException
- All Implemented Interfaces:
- Serializable
A language exception is thrown when a request is made to retrieve some data for a particular language code that is not available in the current app configuration for languages and text tables.
- Author:
- Christopher Mindus
- See Also:
- Constructor SummaryConstructorsConstructorDescription- LanguageException- (String detail) Constructs a language exception with default language code and without causing exception.- LanguageException- (String detail, String languageCode) Constructs a language exception.- LanguageException- (String detail, String languageCode, Throwable cause) Constructs a language exception.
- Method SummaryModifier and TypeMethodDescriptionGets the language code for the exception.Gets the language descriptive name for the exception.Returns the detail message string of this language exception.- Methods inherited from class java.lang.Throwable- addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- Constructor Details- LanguageExceptionConstructs a language exception with default language code and without causing exception.- Parameters:
- detail- The message detail.
 
- LanguageExceptionConstructs a language exception.- Parameters:
- detail- The message detail.
- languageCode- The language code used, or- nullfor default language code.
 
- LanguageExceptionConstructs a language exception.- Parameters:
- detail- The message detail.
- languageCode- The language code used, or- nullfor default language code.
- cause- The exception causing this language exception, or- nullfor no such cause. Use- {@link #getCause()}to find the causing exception.
 
 
- Method Details- getLanguageCodeGets the language code for the exception.- Returns:
- The language code, or nullfor default language.
 
- getLanguageDescriptionGets the language descriptive name for the exception.- Returns:
- The language code description, "UNKNOWN"for unknown language code, ornullfor the default language.
 
- getMessageReturns the detail message string of this language exception.- Overrides:
- getMessagein class- Throwable
- Returns:
- The detail message string of this LanguageExceptioninstance (which may benull).