Top Description Fields Constructors Methods
com.fasterxml.jackson.databind.deser.std

public Class ThrowableDeserializer

extends BeanDeserializer
Class Inheritance
Imports
java.io.IOException, java.util.Arrays, com.fasterxml.jackson.core.*, com.fasterxml.jackson.databind.*, com.fasterxml.jackson.databind.deser.BeanDeserializer, .SettableBeanProperty, com.fasterxml.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
private static final long
Inherited from com.fasterxml.jackson.databind.deser.BeanDeserializer:
_nullFromCreator

Constructor Summary

AccessConstructor and Description
protected
ThrowableDeserializer(BeanDeserializer src, NameTransformer unwrapper)

Alternative constructor used when creating "unwrapping" deserializers

public
ThrowableDeserializer(BeanDeserializer baseDeserializer)
Deprecated

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 com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject.

General version used when handling needs more advanced features.

public JsonDeserializer<Object>
unwrappingDeserializer(NameTransformer unwrapper)

Overrides com.fasterxml.jackson.databind.deser.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 com.fasterxml.jackson.databind.deser.BeanDeserializer:
_creatorReturnedNullException_deserializeFromArray_deserializeOther_deserializeUsingPropertyBased_deserializeWithErrorWrapping_deserializeWithExternalTypeIdasArrayDeserializerdeserializedeserializedeserializeFromNulldeserializeUsingPropertyBasedWithExternalTypeIddeserializeUsingPropertyBasedWithUnwrappeddeserializeWithExternalTypeIddeserializeWithExternalTypeIddeserializeWithUnwrappeddeserializeWithUnwrappeddeserializeWithViewwithBeanPropertieswithByNameInclusionwithIgnoreAllUnknownwithObjectIdReader

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
serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.fasterxml.jackson.databind.deser.BeanDeserializer.serialVersionUID.

Constructor Detail

ThrowableDeserializerback to summary
protected ThrowableDeserializer(BeanDeserializer src, NameTransformer unwrapper)

Alternative constructor used when creating "unwrapping" deserializers

ThrowableDeserializerback to summary
public ThrowableDeserializer(BeanDeserializer baseDeserializer)

Deprecated

Annotations
@Deprecated

Method Detail

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

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 IOException

Overrides com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject.

Doc from com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject.

General version used when handling needs more advanced features.

Annotations
@Override
unwrappingDeserializerback to summary
public JsonDeserializer<Object> unwrappingDeserializer(NameTransformer unwrapper)

Overrides com.fasterxml.jackson.databind.deser.BeanDeserializer.unwrappingDeserializer.

Doc from com.fasterxml.jackson.databind.JsonDeserializer.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