- java.lang.Object
 -  
      
- java.lang.Throwable
 -  
        
- java.lang.Exception
 -  
          
- java.lang.RuntimeException
 -  
            
- java.util.IllformedLocaleException
 
 
 
 
 
-  
       
- 实现的所有接口
 -  
         
Serializable 
public class IllformedLocaleException extends RuntimeException
由Locale和Locale.Builder中的方法抛出,以指示参数不是格式良好的BCP 47标记。- 从以下版本开始:
 - 1.7
 - 另请参见:
 -  
         
Locale, Serialized Form 
 
-  
        
       
-  
             
构造方法摘要
构造方法 构造器 描述 IllformedLocaleException()构造一个没有详细消息的新IllformedLocaleException和-1作为错误索引。IllformedLocaleException(String message)使用给定的消息构造一个新的IllformedLocaleException,并将-1作为错误索引。IllformedLocaleException(String message, int errorIndex)使用给定的消息和错误索引构造一个新的IllformedLocaleException。 
-  
             
方法摘要
所有方法 实例方法 具体的方法 变量和类型 方法 描述 intgetErrorIndex()返回找到错误的索引。 
 -  
             
 
-  
        
       
-  
             
构造方法详细信息
-  
IllformedLocaleException
public IllformedLocaleException()
构造一个没有详细消息的新IllformedLocaleException和-1作为错误索引。 
-  
IllformedLocaleException
public IllformedLocaleException(String message)
使用给定的消息构造一个新的IllformedLocaleException,并将-1作为错误索引。- 参数
 -  
              
message- 信息 
 
-  
IllformedLocaleException
public IllformedLocaleException(String message, int errorIndex)
使用给定的消息和错误索引构造一个新的IllformedLocaleException。 错误索引是从错误值的开始到解析首次检测到错误的点的近似偏移。 负错误索引值表示错误索引不适用或未知。- 参数
 -  
              
message- 该消息 -  
              
errorIndex- 该指数 
 
 -  
 
 -