Class UnknownLanguageException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.AppException
com.aquima.interactions.metamodel.exception.UnknownLanguageException
- All Implemented Interfaces:
Serializable
This type of exception is used when an unknown language is encountered. The language may either be referred by name
or code, so this exception does not need to contain both.
- Since:
- 5.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionUnknownLanguageException
(String code, String name) Constructs the exception with the name or code of the language that was unknown. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the code of the language that was unknown.This method returns the name of the language that was unknown.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnknownLanguageException
Constructs the exception with the name or code of the language that was unknown.- Parameters:
code
- The code of the language that was unknown (optional).name
- The name of the language that was unknown (optional).
-
-
Method Details
-
getLanguageCode
This method returns the code of the language that was unknown. When the language was identified by name, this method may return a null value.- Returns:
- the code of the language that was unknown.
-
getLanguageName
This method returns the name of the language that was unknown. When the language was identified by code, this method may return a null value.- Returns:
- the name of the language that was unknown.
-