Most visited

Recently visited

Added in API level 1

IllegalFormatPrecisionException

public class IllegalFormatPrecisionException
extends IllegalFormatException

java.lang.Object
    java.lang.Throwable
      java.lang.Exception
        java.lang.RuntimeException
          java.lang.IllegalArgumentException
            java.util.IllegalFormatException
              java.util.IllegalFormatPrecisionException


当精度 为非-1以外的负值时抛出未经检查的异常,转换不支持精度,否则该值不受支持。

摘要(Summary)

Public constructors

IllegalFormatPrecisionException(int p)

用指定的精度构造这个类的一个实例。

公共方法(Public methods)

String getMessage()

返回此throwable的详细消息字符串。

int getPrecision()

返回精度

继承方法(Inherited methods)

From class java.lang.Throwable
From class java.lang.Object

Public constructors

IllegalFormatPrecisionException

Added in API level 1
IllegalFormatPrecisionException (int p)

用指定的精度构造这个类的一个实例。

参数(Parameters)
p int: The precision

公共方法(Public methods)

getMessage

Added in API level 1
String getMessage ()

返回此throwable的详细消息字符串。

返回(Returns)
String the detail message string of this Throwable instance (which may be null).

getPrecision

Added in API level 1
int getPrecision ()

返回精度

返回(Returns)
int The precision

Hooray!