invalidRange static method
Creates an error indicating that the number is out of the valid range.
This error is thrown when a number is not within the range of 0 to 1,000,000.
Example:
throw LocaleCaseError.invalidRange();
Implementation
static LocaleCaseError invalidRange() {
return LocaleCaseError(
"Invalid range: The number must be between 0 and 1,000,000.");
}