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:
Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIllegalFormatConversionException
(String formatSpecifier, char conversion, String signature) Constructs an instance of this class with the mismatched conversion and the corresponding argument class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the class of the mismatched argument.char
void
setArgIndex
(int argIndex) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
IllegalFormatConversionException
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 Details
-
setArgIndex
public void setArgIndex(int argIndex) -
getArgIndex
public int getArgIndex() -
getFormatSpecifier
-
getConversion
public char getConversion() -
getArgumentSignature
Returns the class of the mismatched argument.- Returns:
- The class of the mismatched argument
-
getMessage
- Overrides:
getMessage
in classThrowable
-