com.ibm.icu.util
Class IllformedLocaleException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by com.ibm.icu.util.IllformedLocaleException
All Implemented Interfaces:
java.io.Serializable

public class IllformedLocaleException
extends java.lang.IllegalArgumentException

Thrown by methods in Locale class to indicate that a locale string is illformed.

See Also:
Serialized Form
Status:
Draft ICU 4.2.

Constructor Summary
IllformedLocaleException(java.lang.String msg)
          Constructs a new IllformedLocaleException with the detail message.
IllformedLocaleException(java.lang.String msg, int errIdx)
          Constructs a new IllformedLocaleException with the detail message and the error index.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IllformedLocaleException

public IllformedLocaleException(java.lang.String msg)
Constructs a new IllformedLocaleException with the detail message.

Parameters:
msg - the detail message
Status:
Draft ICU 4.2.

IllformedLocaleException

public IllformedLocaleException(java.lang.String msg,
                                int errIdx)
Constructs a new IllformedLocaleException with the detail message and the error index.

Parameters:
msg - the detail message
errIdx - the index where the error is found in a locale string
Status:
Draft ICU 4.2.
Method Detail

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.