Android
java.util
public class

java.util.IllegalFormatPrecisionException

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

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.
Methods inherited from class java.lang.Throwable
Methods inherited from class java.lang.Object

Details

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.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56