Uses of Class
tools.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.
Package that contains standard value and key deserializer base classes
that Jackson both uses for its own implementations and offers for
module developers as convenient partial implementations.
-
Uses of DatabindException in tools.jackson.databind
Methods in tools.jackson.databind that return DatabindExceptionModifier and TypeMethodDescriptionprotected DatabindExceptionSerializationContext._mappingProblem(Throwable t, String message, Object... msgArgs) static DatabindExceptionDatabindException.from(JsonGenerator g, String msg) static DatabindExceptionDatabindException.from(JsonGenerator g, String msg, Throwable problem) static DatabindExceptionDatabindException.from(JsonParser p, String msg) static DatabindExceptionDatabindException.from(JsonParser p, String msg, Throwable problem) static DatabindExceptionDatabindException.from(DeserializationContext ctxt, String msg) static DatabindExceptionDatabindException.from(DeserializationContext ctxt, String msg, Throwable problem) static DatabindExceptionDatabindException.from(SerializationContext ctxt, String msg) static DatabindExceptionDatabindException.from(SerializationContext ctxt, String msg, Throwable problem) DeserializationContext.instantiationException(Class<?> instClass, String msg0) Helper method for constructing instantiation exception for specified type, to indicate that instantiation failed due to missing instantiator (creator; constructor or factory method).DeserializationContext.instantiationException(Class<?> instClass, Throwable cause) Helper method for constructing instantiation exception for specified type, to indicate problem with physically constructing instance of specified class (missing constructor, exception from constructor)protected abstract DatabindExceptionDatabindContext.invalidTypeIdException(JavaType baseType, String typeId, String extraDesc) Helper method for constructing exception to indicate that given type id could not be resolved to a valid subtype of specified base type.DeserializationContext.invalidTypeIdException(JavaType baseType, String typeId, String extraDesc) SerializationContext.invalidTypeIdException(JavaType baseType, String typeId, String extraDesc) DeserializationContext.missingInjectableValueException(String msg, Object valueId, BeanProperty forProperty, Object beanInstance) DeserializationContext.missingTypeIdException(JavaType baseType, String extraDesc) DeserializationContext.weirdKeyException(Class<?> keyClass, String keyValue, String msg) Helper method for constructing exception to indicate that given JSON Object field name was not in format to be able to deserialize specified key type.DeserializationContext.weirdNativeValueException(Object value, Class<?> instClass) Helper method for constructing exception to indicate that input JSON token of type "native value" (seeJsonToken.VALUE_EMBEDDED_OBJECT) is of incompatible type (and there is no delegating creator or such to use) and cannot be used to construct value of specified type (usually POJO).DeserializationContext.weirdNumberException(Number value, Class<?> instClass, String msg) Helper method for constructing exception to indicate that input JSON Number was not suitable for deserializing into given target type.DeserializationContext.weirdStringException(String value, Class<?> instClass, String msgBase) Helper method for constructing exception to indicate that input JSON String was not suitable for deserializing into given target type.DeserializationContext.wrongTokenException(JsonParser p, Class<?> targetType, JsonToken expToken, String extra) DeserializationContext.wrongTokenException(JsonParser p, JavaType targetType, JsonToken expToken, String extra) Helper method for constructingDatabindExceptionto indicate that the token encountered was of type different than what should be seen at that position, usually within a sequence of expected tokens.Methods in tools.jackson.databind that throw DatabindExceptionModifier and TypeMethodDescriptionprotected ValueDeserializer<Object>ObjectReader._findRootDeserializer(DeserializationContext ctxt) Method called to locate deserializer for the passed root-level value.protected ValueDeserializer<Object>ObjectReader._findTreeDeserializer(DeserializationContext ctxt) protected <T> TDatabindContext._throwNotASubtype(JavaType baseType, String subType) protected <T> TDatabindContext._throwSubtypeClassNotAllowed(JavaType baseType, String subType, PolymorphicTypeValidator ptv) protected <T> TDatabindContext._throwSubtypeNameNotAllowed(JavaType baseType, String subType, PolymorphicTypeValidator ptv) voidDeserializationContext.handleBadMerge(ValueDeserializer<?> deser) Method that deserializer may call if it is called to do an update ("merge") but deserializer operates on a non-mergeable type.<T> TDeserializationContext.reportBadCoercion(ValueDeserializer<?> src, Class<?> targetType, Object inputValue, String msg, Object... msgArgs) Helper method used to indicate a problem with input in cases where specific input coercion was not allowed.<T> TDatabindContext.reportBadDefinition(Class<?> type, String msg) abstract <T> TDatabindContext.reportBadDefinition(JavaType type, String msg) Helper method called to indicate a generic problem that stems from type definition(s), not input data, or input/output state; typically this means throwing aInvalidDefinitionException.<T> TDeserializationContext.reportBadDefinition(JavaType type, String msg) <T> TSerializationContext.reportBadDefinition(Class<?> raw, String msg, Throwable cause) <T> TSerializationContext.reportBadDefinition(JavaType type, String msg) <T> TSerializationContext.reportBadDefinition(JavaType type, String msg, Throwable cause) <T> TDeserializationContext.reportBadPropertyDefinition(BeanDescription.Supplier beanDescRef, BeanPropertyDefinition prop, String msg, Object... msgArgs) Helper method called to indicate problem in POJO (serialization) definitions or settings regarding specific property (of a type), unrelated to actual JSON content to map.<T> TDeserializationContext.reportBadPropertyDefinition(BeanDescription bean, BeanPropertyDefinition prop, String msg, Object... msgArgs) <T> TSerializationContext.reportBadPropertyDefinition(BeanDescription bean, BeanPropertyDefinition prop, String message, Object... msgArgs) Helper method called to indicate problem in POJO (serialization) definitions or settings regarding specific property (of a type), unrelated to actual JSON content to map.<T> TDatabindContext.reportBadTypeDefinition(BeanDescription.Supplier beanDescRef, String msg, Object... msgArgs) abstract <T> TDatabindContext.reportBadTypeDefinition(BeanDescription bean, String msg, Object... msgArgs) <T> TDeserializationContext.reportBadTypeDefinition(BeanDescription bean, String msg, Object... msgArgs) Helper method called to indicate problem in POJO (serialization) definitions or settings regarding specific Java type, unrelated to actual JSON content to map.<T> TSerializationContext.reportBadTypeDefinition(BeanDescription bean, String msg, Object... msgArgs) Helper method called to indicate problem in POJO (serialization) definitions or settings regarding specific Java type, unrelated to actual JSON content to map.<T> TDeserializationContext.reportInputMismatch(Class<?> targetType, String msg, Object... msgArgs) Helper method used to indicate a problem with input in cases where more specificreportXxx()method was not available.<T> TDeserializationContext.reportInputMismatch(BeanProperty prop, String msg, Object... msgArgs) Helper method used to indicate a problem with input in cases where more specificreportXxx()method was not available.<T> TDeserializationContext.reportInputMismatch(JavaType targetType, String msg, Object... msgArgs) Helper method used to indicate a problem with input in cases where more specificreportXxx()method was not available.<T> TDeserializationContext.reportInputMismatch(ValueDeserializer<?> src, String msg, Object... msgArgs) Helper method used to indicate a problem with input in cases where more specificreportXxx()method was not available.voidSerializationContext.reportMappingProblem(String message, Object... msgArgs) Helper method called to indicate problem; default behavior is to construct and throw aDatabindException, but in future may collect more than one and only throw after certain number, or at the end of serialization.voidSerializationContext.reportMappingProblem(Throwable t, String message, Object... msgArgs) Helper method called to indicate problem; default behavior is to construct and throw aDatabindException, but in future may collect more than one and only throw after certain number, or at the end of serialization.<T> TDeserializationContext.reportPropertyInputMismatch(Class<?> targetType, String propertyName, String msg, Object... msgArgs) Helper method used to indicate a problem with input in cases where more specificreportXxx()method was not available.<T> TDeserializationContext.reportPropertyInputMismatch(JavaType targetType, String propertyName, String msg, Object... msgArgs) Helper method used to indicate a problem with input in cases where more specificreportXxx()method was not available.<T> TDeserializationContext.reportTrailingTokens(Class<?> targetType, JsonParser p, JsonToken trailingToken) <T> TDeserializationContext.reportUnresolvedObjectId(ObjectIdReader oidReader, Object bean) voidDeserializationContext.reportWrongTokenException(Class<?> targetType, JsonToken expToken, String msg, Object... msgArgs) Method for deserializers to call when the token encountered was of type different than what should be seen at that position, usually within a sequence of expected tokens.voidDeserializationContext.reportWrongTokenException(JavaType targetType, JsonToken expToken, String msg, Object... msgArgs) Method for deserializers to call when the token encountered was of type different than what should be seen at that position, usually within a sequence of expected tokens.voidDeserializationContext.reportWrongTokenException(ValueDeserializer<?> deser, JsonToken expToken, String msg, Object... msgArgs) Method for deserializers to call when the token encountered was of type different than what should be seen at that position, usually within a sequence of expected tokens. -
Uses of DatabindException in tools.jackson.databind.deser
Subclasses of DatabindException in tools.jackson.databind.deserModifier and TypeClassDescriptionclassException thrown during deserialization when there are object id that can't be resolved. -
Uses of DatabindException in tools.jackson.databind.deser.bean
Methods in tools.jackson.databind.deser.bean that return DatabindExceptionModifier and TypeMethodDescriptionBeanDeserializerBase.wrapAndThrow(Throwable t, Object bean, String fieldName, DeserializationContext ctxt) Method that will modify caught exception (passed in as argument) as necessary to include reference information, and to ensure it is a subtype ofDatabindException, or an unchecked exception.Methods in tools.jackson.databind.deser.bean that throw DatabindExceptionModifier and TypeMethodDescriptionprotected final ObjectBeanDeserializer._deserializeWithErrorWrapping(JsonParser p, DeserializationContext ctxt, SettableBeanProperty prop) protected ObjectPropertyValueBuffer._findMissing(SettableBeanProperty prop) PropertyValueBuffer.getParameter(DeserializationContext ctxt, SettableBeanProperty prop) A variation ofPropertyValueBuffer.getParameters(tools.jackson.databind.DeserializationContext, tools.jackson.databind.deser.SettableBeanProperty[])that accepts a single property.Object[]PropertyValueBuffer.getParameters(DeserializationContext ctxt, SettableBeanProperty[] props) Method called to do necessary post-processing such as injection of values and verification of values for required properties, after eitherPropertyValueBuffer.assignParameter(SettableBeanProperty, Object)returnstrue(to indicate all creator properties are found), or when the whole JSON Object has been processed, -
Uses of DatabindException in tools.jackson.databind.deser.std
Methods in tools.jackson.databind.deser.std that return DatabindExceptionModifier and TypeMethodDescriptionprotected DatabindExceptionStdValueInstantiator.rewrapCtorProblem(DeserializationContext ctxt, Throwable t) Method that subclasses may call for standard handling of an exception thrown when calling constructor or factory method.protected DatabindExceptionStdValueInstantiator.wrapAsDatabindException(DeserializationContext ctxt, Throwable t) Helper method that will return givenThrowablecase as aDatabindException(if it is of that type), or callDeserializationContext.instantiationException(Class, Throwable)to produce and return suitableDatabindException.Methods in tools.jackson.databind.deser.std that throw DatabindExceptionModifier and TypeMethodDescriptionprotected voidStdDeserializer._reportFailedNullCoerce(DeserializationContext ctxt, boolean state, Enum<?> feature, String inputDesc) protected final voidStdDeserializer._verifyNullForPrimitive(DeserializationContext ctxt) Method called to verify thatnulltoken from input is acceptable for primitive (unboxed) target type.protected final voidStdDeserializer._verifyNullForPrimitiveCoercion(DeserializationContext ctxt, String str) Method called to verify that text value"null"from input is acceptable for primitive (unboxed) target type. -
Uses of DatabindException in tools.jackson.databind.exc
Subclasses of DatabindException in tools.jackson.databind.excModifier and TypeClassDescriptionclassSpecializedDatabindExceptionsub-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 allDatabindExceptions 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.classclassGeneral exception type used as the base class for allDatabindExceptions 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.classclassBase class forMismatchedInputExceptions that are specifically related to problems related to binding an individual property.classSpecializedPropertyBindingExceptionsub-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.