Package java.util
Class IllformedLocaleException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.util.IllformedLocaleException
-
- All Implemented Interfaces:
Serializable
public class IllformedLocaleException extends RuntimeException
Thrown when a locale subtag or field is not well formed. SeeLocaleandLocale.Builder.- Since:
- 1.7
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorIndex()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
IllformedLocaleException
public IllformedLocaleException()
Constructs a new instance with no detail message and an error index of-1.
-
IllformedLocaleException
public IllformedLocaleException(String message)
Constructs a new instance with the specified error message.
-
IllformedLocaleException
public IllformedLocaleException(String message, int errorIndex)
Constructs a new instance with the specified error message and error index.
-
-