Class InvalidFormatException

    • Constructor Detail

      • InvalidFormatException

        @Deprecated
        public InvalidFormatException​(java.lang.String msg,
                                      java.lang.Object value,
                                      java.lang.Class<?> targetType)
        Deprecated.
        Since 2.7 Use variant that takes JsonParser
      • InvalidFormatException

        @Deprecated
        public InvalidFormatException​(java.lang.String msg,
                                      JsonLocation loc,
                                      java.lang.Object value,
                                      java.lang.Class<?> targetType)
        Deprecated.
        Since 2.7 Use variant that takes JsonParser
      • InvalidFormatException

        public InvalidFormatException​(JsonParser p,
                                      java.lang.String msg,
                                      java.lang.Object value,
                                      java.lang.Class<?> targetType)
        Since:
        2.7
    • Method Detail

      • getValue

        public java.lang.Object getValue()
        Accessor for checking source value (String, Number usually) that could not be deserialized into target type (MismatchedInputException.getTargetType()). Note that value may not be available, depending on who throws the exception and when.