public class IllformedLocaleException extends RuntimeException
Locale
和
Locale.Builder
方法表明,争论不好的BCP 47标签。
Locale
,
Serialized Form
Constructor and Description |
---|
IllformedLocaleException()
构建无详细信息和1的误差指标的新
IllformedLocaleException 。
|
IllformedLocaleException(String message)
构建了一种新的
IllformedLocaleException 与给定的消息和1作为误差指标。
|
IllformedLocaleException(String message, int errorIndex)
构建了一种新的
IllformedLocaleException 与给定的消息和错误指标。
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorIndex()
返回找到错误的索引。
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public IllformedLocaleException()
IllformedLocaleException
。
public IllformedLocaleException(String message)
IllformedLocaleException
与给定的消息和1作为误差指标。
message
--消息
public IllformedLocaleException(String message, int errorIndex)
IllformedLocaleException
。错误指数是从病态的值开始的近似偏移到解析第一次检测到一个错误的点。一个负错误索引值表示错误索引不适用或未知。
message
--消息
errorIndex
-指数
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.