Class IllegalFormatConversionException

    • 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
      int getArgIndex()  
      java.lang.String getArgumentSignature()
      Returns the class of the mismatched argument.
      char getConversion()  
      java.lang.String getFormatSpecifier()  
      java.lang.String getMessage()  
      void setArgIndex​(int argIndex)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, 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​(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 specifier
        signature - 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:
        getMessage in class java.lang.Throwable