edu.umd.cs.findbugs.formatStringChecker

Class IllegalFormatConversionException

public class IllegalFormatConversionException extends FormatterException

Constructor Summary
IllegalFormatConversionException(String formatSpecifier, char conversion, String signature)
Constructs an instance of this class with the mismatched conversion and the corresponding argument class.
Method Summary
intgetArgIndex()
StringgetArgumentSignature()
Returns the class of the mismatched argument.
chargetConversion()
StringgetFormatSpecifier()
StringgetMessage()
voidsetArgIndex(int argIndex)

Constructor Detail

IllegalFormatConversionException

public IllegalFormatConversionException(String formatSpecifier, char conversion, String signature)
Constructs an instance of this class with the mismatched conversion and the corresponding argument class.

Parameters: formatSpecifier Inapplicable format specifier signature Signature of the mismatched argument

Method Detail

getArgIndex

public int getArgIndex()

getArgumentSignature

public String getArgumentSignature()
Returns the class of the mismatched argument.

Returns: The class of the mismatched argument

getConversion

public char getConversion()

getFormatSpecifier

public String getFormatSpecifier()

getMessage

public String getMessage()

setArgIndex

public void setArgIndex(int argIndex)