Class UnknownLanguageException

All Implemented Interfaces:
Serializable

public class UnknownLanguageException extends AppException
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 Details

    • UnknownLanguageException

      public UnknownLanguageException(String code, String name)
      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

      public String 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

      public String 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.