Class IllegalFormatConversionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- edu.umd.cs.findbugs.formatStringChecker.FormatterException
-
- edu.umd.cs.findbugs.formatStringChecker.IllegalFormatConversionException
-
- All Implemented Interfaces:
java.io.Serializable
public class IllegalFormatConversionException extends FormatterException
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IllegalFormatConversionException(java.lang.String formatSpecifier, char conversion, java.lang.String signature)Constructs an instance of this class with the mismatched conversion and the corresponding argument class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetArgIndex()java.lang.StringgetArgumentSignature()Returns the class of the mismatched argument.chargetConversion()java.lang.StringgetFormatSpecifier()java.lang.StringgetMessage()voidsetArgIndex(int argIndex)
-
-
-
Constructor Detail
-
IllegalFormatConversionException
public IllegalFormatConversionException(java.lang.String formatSpecifier, char conversion, java.lang.String signature)Constructs an instance of this class with the mismatched conversion and the corresponding argument class.- Parameters:
formatSpecifier- Inapplicable format specifiersignature- Signature of the mismatched argument
-
-
Method Detail
-
setArgIndex
public void setArgIndex(int argIndex)
-
getArgIndex
public int getArgIndex()
-
getFormatSpecifier
public java.lang.String getFormatSpecifier()
-
getConversion
public char getConversion()
-
getArgumentSignature
public java.lang.String getArgumentSignature()
Returns the class of the mismatched argument.- Returns:
- The class of the mismatched argument
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessagein classjava.lang.Throwable
-
-