com.ibm.icu.util
Class IllformedLocaleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
com.ibm.icu.util.IllformedLocaleException
- All Implemented Interfaces:
- Serializable
public class IllformedLocaleException
- extends IllegalArgumentException
Thrown by methods in Locale class to indicate that a locale string
is illformed.
- See Also:
- Serialized Form
- Status:
- Draft ICU 4.2.
Method Summary |
int |
getErrorIndex()
Returns the index where the error is found in a locale string |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
IllformedLocaleException
public IllformedLocaleException(String msg)
- Constructs a new
IllformedLocaleException
with
the detail message.
- Parameters:
msg
- the detail message- Status:
- Draft ICU 4.2.
IllformedLocaleException
public IllformedLocaleException(String msg,
int errIdx)
- Constructs a new
IllformedLocaleException
with
the detail message and the error index.
- Parameters:
msg
- the detail messageerrIdx
- the index where the error is found in a locale string- Status:
- Draft ICU 4.2.
getErrorIndex
public int getErrorIndex()
- Returns the index where the error is found in a locale string
- Returns:
- the index where the error is found in a locale string or
-1 if unknown.
- Status:
- Draft ICU 4.2.
Copyright (c) 2009 IBM Corporation and others.