Android APIs
public class

IllformedLocaleException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ java.util.IllformedLocaleException

Class Overview

Thrown when a locale subtag or field is not well formed. See Locale and Locale.Builder.

Summary

Public Constructors
IllformedLocaleException()
Constructs a new instance with no detail message and an error index of -1.
IllformedLocaleException(String message)
Constructs a new instance with the specified error message.
IllformedLocaleException(String message, int errorIndex)
Constructs a new instance with the specified error message and error index.
Public Methods
int getErrorIndex()
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public IllformedLocaleException ()

Added in API level 21

Constructs a new instance with no detail message and an error index of -1.

public IllformedLocaleException (String message)

Added in API level 21

Constructs a new instance with the specified error message.

public IllformedLocaleException (String message, int errorIndex)

Added in API level 21

Constructs a new instance with the specified error message and error index.

Public Methods

public int getErrorIndex ()

Added in API level 21