Uses of Class
com.fasterxml.jackson.databind.DatabindException
Packages that use DatabindException
Package
Description
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode), as well as
writing Java Objects and trees as JSON.Contains implementation classes of deserialization part of
data binding.
-
Uses of DatabindException in com.fasterxml.jackson.databind
Subclasses of DatabindException in com.fasterxml.jackson.databindModifier and TypeClassDescriptionclassChecked exception used to signal fatal problems with mapping of content, distinct from low-level I/O problems (signaled using simpleIOExceptions) or data encoding/decoding problems (signaled withStreamReadException,StreamWriteException).Methods in com.fasterxml.jackson.databind that throw DatabindExceptionModifier and TypeMethodDescriptionprotected JsonDeserializer<Object> ObjectMapper._findRootDeserializer(DeserializationContext ctxt, JavaType valueType) Method called to locate deserializer for the passed root-level value.protected JsonDeserializer<Object> ObjectReader._findRootDeserializer(DeserializationContext ctxt) Method called to locate deserializer for the passed root-level value.protected JsonDeserializer<Object> ObjectReader._findTreeDeserializer(DeserializationContext ctxt) <T> TObjectMapper.readValue(byte[] src, int offset, int len, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) <T> T<T> T<T> TObjectMapper.readValue(byte[] src, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) <T> T<T> Tfinal <T> TObjectMapper.readValue(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.core.type.ResolvedType valueType) Method to deserialize JSON content into a Java type, reference to which is passed as argument.<T> TObjectMapper.readValue(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) Method to deserialize JSON content into a Java type, reference to which is passed as argument.<T> TType-safe overloaded method, basically alias forObjectMapper.readValue(JsonParser, Class).<T> TMethod to deserialize JSON content into a non-container type (it can be an array type, however): typically a bean, array or a wrapper type (likeBoolean).<T> TMethod to deserialize JSON content from given file into given Java type.<T> TMethod to deserialize JSON content from given file into given Java type.<T> TMethod to deserialize JSON content from given file into given Java type.<T> TObjectMapper.readValue(InputStream src, com.fasterxml.jackson.core.type.TypeReference<T> valueTypeRef) <T> TObjectMapper.readValue(InputStream src, JavaType valueType) <T> TObjectMapper.readValue(InputStream src, Class<T> valueType) <T> T<T> T<T> T<T> TSame asObjectMapper.readValue(java.net.URL, Class)except that target specified byTypeReference.<T> TSame asObjectMapper.readValue(java.net.URL, Class)except that target specified byJavaType.<T> TMethod to deserialize JSON content from given resource into given Java type.voidObjectMapper.writeValue(com.fasterxml.jackson.core.JsonGenerator g, Object value) Method that can be used to serialize any Java value as JSON output, using providedJsonGenerator.voidObjectMapper.writeValue(File resultFile, Object value) Method that can be used to serialize any Java value as JSON output, written to File provided.voidObjectMapper.writeValue(OutputStream out, Object value) Method that can be used to serialize any Java value as JSON output, using output stream provided (using encodingJsonEncoding.UTF8).voidObjectMapper.writeValue(Writer w, Object value) Method that can be used to serialize any Java value as JSON output, using Writer provided.voidObjectWriter.writeValue(DataOutput out, Object value) voidObjectWriter.writeValue(File resultFile, Object value) Method that can be used to serialize any Java value as JSON output, written to File provided.voidObjectWriter.writeValue(OutputStream out, Object value) Method that can be used to serialize any Java value as JSON output, using output stream provided (using encodingJsonEncoding.UTF8).voidObjectWriter.writeValue(Writer w, Object value) Method that can be used to serialize any Java value as JSON output, using Writer provided. -
Uses of DatabindException in com.fasterxml.jackson.databind.deser
Subclasses of DatabindException in com.fasterxml.jackson.databind.deserModifier and TypeClassDescriptionclassException thrown during deserialization when there are object id that can't be resolved. -
Uses of DatabindException in com.fasterxml.jackson.databind.exc
Subclasses of DatabindException in com.fasterxml.jackson.databind.excModifier and TypeClassDescriptionclassSpecializedJsonMappingExceptionsub-class used to indicate case where an explicitly ignored property is encountered, and mapper is configured to consider this an error.classIntermediate exception type used as the base class for allJsonMappingExceptions that are due to problems with target type definition; usually a problem with annotations used on a class or its properties.classSpecialized sub-class ofMismatchedInputExceptionthat is used when the underlying problem appears to be that of bad formatting of a value to deserialize.classException thrown if a `null` value is being encountered for a property designed as "fail on null" property (seeJsonSetter).classException thrown when resolution of a type id fails.classGeneral exception type used as the base class for allJsonMappingExceptions that are due to input not mapping to target definition; these are typically considered "client errors" since target type definition itself is not the root cause but mismatching input.classBase class forJsonMappingExceptions that are specifically related to problems related to binding an individual property.classSpecializedJsonMappingExceptionsub-class specifically used to indicate problems due to encountering a JSON property that could not be mapped to an Object property (via getter, constructor argument or field).classException type used for generic failures during processing byValueInstantiator: commonly used to wrap exceptions thrown by constructor or factory method.