edu.umd.cs.findbugs.formatStringChecker
Class IllegalFormatConversionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.umd.cs.findbugs.formatStringChecker.FormatterException
              extended by edu.umd.cs.findbugs.formatStringChecker.IllegalFormatConversionException
All Implemented Interfaces:
Serializable

public class IllegalFormatConversionException
extends FormatterException

See Also:
Serialized Form

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
 int getArgIndex()
           
 String getArgumentSignature()
          Returns the class of the mismatched argument.
 char getConversion()
           
 String getFormatSpecifier()
           
 String getMessage()
           
 void setArgIndex(int argIndex)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

setArgIndex

public void setArgIndex(int argIndex)

getArgIndex

public int getArgIndex()

getFormatSpecifier

public String getFormatSpecifier()

getConversion

public char getConversion()

getArgumentSignature

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

Returns:
The class of the mismatched argument

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable