com.fasterxml.jackson.databind.exc

Class InvalidFormatException

    • Field Detail

      • _value

        protected final Object _value
        Underlying value that could not be deserialized into target type, if available.
      • _targetType

        protected final Class<?> _targetType
        Intended target type (type-erased class) that value could not be deserialized into, if known.
    • Constructor Detail

      • InvalidFormatException

        public InvalidFormatException(String msg,
                              Object value,
                              Class<?> targetType)
    • Method Detail

      • getValue

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

        public Class<?> getTargetType()
        Accessor for checking target type of value (getValue() that failed to deserialize. Note that type may not be available, depending on who throws the exception and when.

Copyright © 2008–2018 FasterXML. All rights reserved.