加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090218032440/http://developer.android.com:80/reference/java/util/IllegalFormatPrecisionException.html
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

Class Overview

The unchecked exception will be thrown out when the precision is a negative other than -1, or the conversion does not support a precision or other cases when the precision is not supported.

Summary

Public Constructors
IllegalFormatPrecisionException(int p)
Constructs a IllegalFormatPrecisionException with specified precision.
Public Methods
String getMessage()
Returns the message of the exception.
int getPrecision()
Returns the precision associated with the exception.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public IllegalFormatPrecisionException (int p)

Constructs a IllegalFormatPrecisionException with specified precision.

Parameters
p The precision.

Public Methods

public String getMessage ()

Returns the message of the exception.

Returns
  • The message of the exception.

public int getPrecision ()

Returns the precision associated with the exception.

Returns
  • the precision.