Top Description Fields Constructors Methods
tools.jackson.databind.deser.jdk

public Class ThrowableDeserializer

extends BeanDeserializer
Class Inheritance
Imports
java.util.Arrays, tools.jackson.core.*, tools.jackson.core.sym.PropertyNameMatcher, tools.jackson.databind.*, tools.jackson.databind.deser.SettableBeanProperty, tools.jackson.databind.deser.bean.BeanDeserializer, .BeanPropertyMap, .PropertyBasedCreator, tools.jackson.databind.deser.impl.UnwrappedPropertyHandler, tools.jackson.databind.util.NameTransformer

Deserializer that builds on basic BeanDeserializer but override some aspects like instance construction.

Field Summary

Modifier and TypeField and Description
protected static final String
protected static final String
protected static final String
Inherited from tools.jackson.databind.deser.bean.BeanDeserializer:
_currentlyTransforming_propNameMatcher_propsByIndex

Constructor Summary

AccessConstructor and Description
protected
protected
ThrowableDeserializer(BeanDeserializer src, UnwrappedPropertyHandler unwrapHandler, PropertyBasedCreator pbCreator, BeanPropertyMap renamedProperties, boolean ignoreAllUnknown)

Alternative constructor used when creating "unwrapping" deserializers

Method Summary

Modifier and TypeMethod and Description
private Throwable
_instantiate(DeserializationContext ctxt, boolean hasStringCreator, String valueAsString)

Helper method to initialize Throwable

public static ThrowableDeserializer
public Object
deserializeFromObject(JsonParser p, DeserializationContext ctxt)

Overrides tools.jackson.databind.deser.bean.BeanDeserializer.deserializeFromObject.

General version used when handling needs more advanced features.

public ValueDeserializer<Object>
unwrappingDeserializer(DeserializationContext ctxt, NameTransformer transformer)

Overrides tools.jackson.databind.deser.bean.BeanDeserializer.unwrappingDeserializer.

Method that will return deserializer instance that is able to handle "unwrapped" value instances If no unwrapped instance can be constructed, will simply return this object as-is.

Inherited from tools.jackson.databind.deser.bean.BeanDeserializer:
_deserializeFromArray_deserializeOther_deserializeUsingPropertyBased_deserializeWithErrorWrapping_deserializeWithExternalTypeId_handleNullFromPropsBasedCreator_handleUnexpectedWithinasArrayDeserializerdeserializedeserializedeserializeFromNulldeserializeUsingPropertyBasedWithExternalTypeIddeserializeUsingPropertyBasedWithUnwrappeddeserializeWithExternalTypeIddeserializeWithExternalTypeIddeserializeWithUnwrappeddeserializeWithUnwrappeddeserializeWithViewinitNameMatcherwithBeanPropertieswithByNameInclusionwithIgnoreAllUnknownwithObjectIdReader

Field Detail

PROP_NAME_LOCALIZED_MESSAGEback to summary
protected static final String PROP_NAME_LOCALIZED_MESSAGE
PROP_NAME_MESSAGEback to summary
protected static final String PROP_NAME_MESSAGE
PROP_NAME_SUPPRESSEDback to summary
protected static final String PROP_NAME_SUPPRESSED

Constructor Detail

ThrowableDeserializerback to summary
protected ThrowableDeserializer(BeanDeserializer baseDeserializer)
ThrowableDeserializerback to summary
protected ThrowableDeserializer(BeanDeserializer src, UnwrappedPropertyHandler unwrapHandler, PropertyBasedCreator pbCreator, BeanPropertyMap renamedProperties, boolean ignoreAllUnknown)

Alternative constructor used when creating "unwrapping" deserializers

Method Detail

_instantiateback to summary
private Throwable _instantiate(DeserializationContext ctxt, boolean hasStringCreator, String valueAsString)

Helper method to initialize Throwable

Since
2.16.2
constructback to summary
public static ThrowableDeserializer construct(DeserializationContext ctxt, BeanDeserializer baseDeserializer)
deserializeFromObjectback to summary
public Object deserializeFromObject(JsonParser p, DeserializationContext ctxt) throws JacksonException

Overrides tools.jackson.databind.deser.bean.BeanDeserializer.deserializeFromObject.

Doc from tools.jackson.databind.deser.bean.BeanDeserializer.deserializeFromObject.

General version used when handling needs more advanced features.

Annotations
@Override
unwrappingDeserializerback to summary
public ValueDeserializer<Object> unwrappingDeserializer(DeserializationContext ctxt, NameTransformer transformer)

Overrides tools.jackson.databind.deser.bean.BeanDeserializer.unwrappingDeserializer.

Doc from tools.jackson.databind.ValueDeserializer.unwrappingDeserializer.

Method that will return deserializer instance that is able to handle "unwrapped" value instances If no unwrapped instance can be constructed, will simply return this object as-is.

Default implementation just returns 'this' indicating that no unwrapped variant exists

Annotations
@Override