unsupportedLanguage static method

LocaleCaseError unsupportedLanguage()

Creates an error indicating that the specified language is not supported.

This error is thrown when a language that is not supported by the LocalCase package is requested.

Example:

throw LocaleCaseError.unsupportedLanguage();

Implementation

static LocaleCaseError unsupportedLanguage() {
  return LocaleCaseError(
      "Unsupported language: This language is not supported.");
}