java.util

Class FormatFlagsConversionMismatchException

Implemented Interfaces:
Serializable

public class FormatFlagsConversionMismatchException
extends IllegalFormatException

Unchecked exception thrown when a conversion and flag are incompatible.

Unless otherwise specified, passing a null argument to any method or constructor in this class will cause a NullPointerException to be thrown.

Since:
1.5
See Also:
Serialized Form

Constructor Summary

FormatFlagsConversionMismatchException(String f, char c)
Constructs an instance of this class with the specified flag and conversion.

Method Summary

char
getConversion()
Returns the incompatible conversion.
String
getFlags()
Returns the incompatible flag.
String
getMessage()

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

FormatFlagsConversionMismatchException

public FormatFlagsConversionMismatchException(String f,
                                              char c)
Constructs an instance of this class with the specified flag and conversion.
Parameters:
f - The flag
c - The conversion
Usages and Demos :

View More Examples of FormatFlagsConversionMismatchException(String f,char c)
   1:     public void assertNoFlag(char flag) {
   2:         if (isFlag(flag)) throw new FormatFlagsConversionMismatchException(flags, getConversionType());
   3:     }
   4: 
   5:     public void assertNoPrecision() {

View Full Code Here

Method Details

getConversion

public char getConversion()
Returns the incompatible conversion.
Returns:
The conversion

getFlags

public String getFlags()
Returns the incompatible flag.
Returns:
The flag

getMessage

public String getMessage()
Overrides:
getMessage in interface Throwable