Class ThrowableDeserializer

    • Field Detail

      • PROP_NAME_MESSAGE

        protected static final java.lang.String PROP_NAME_MESSAGE
        See Also:
        Constant Field Values
      • PROP_NAME_SUPPRESSED

        protected static final java.lang.String PROP_NAME_SUPPRESSED
        See Also:
        Constant Field Values
      • PROP_NAME_LOCALIZED_MESSAGE

        protected static final java.lang.String PROP_NAME_LOCALIZED_MESSAGE
        See Also:
        Constant Field Values
      • PROP_NAME_CAUSE

        protected static final java.lang.String PROP_NAME_CAUSE
        See Also:
        Constant Field Values
      • PROP_NAME_STACK_TRACE

        protected static final java.lang.String PROP_NAME_STACK_TRACE
        See Also:
        Constant Field Values
    • Constructor Detail

      • ThrowableDeserializer

        protected ThrowableDeserializer​(BeanDeserializer src,
                                        NameTransformer unwrapper)
        Alternative constructor used when creating "unwrapping" deserializers
      • ThrowableDeserializer

        @Deprecated
        public ThrowableDeserializer​(BeanDeserializer baseDeserializer)
        Deprecated.
    • Method Detail

      • unwrappingDeserializer

        public JsonDeserializer<java.lang.Object> unwrappingDeserializer​(NameTransformer unwrapper)
        Description copied from class: JsonDeserializer
        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

        Overrides:
        unwrappingDeserializer in class BeanDeserializer
      • deserializeFromObject

        public java.lang.Object deserializeFromObject​(com.fasterxml.jackson.core.JsonParser p,
                                                      DeserializationContext ctxt)
                                               throws java.io.IOException
        Description copied from class: BeanDeserializer
        General version used when handling needs more advanced features.
        Overrides:
        deserializeFromObject in class BeanDeserializer
        Throws:
        java.io.IOException
      • _shouldSkipNullValue

        private boolean _shouldSkipNullValue​(java.lang.String propertyName)
        Helper method to check if a property with null value should be skipped during deserialization. Some Throwable setters throw NPE when called with null.
        Since:
        2.21
      • _instantiate

        private java.lang.Throwable _instantiate​(DeserializationContext ctxt,
                                                 boolean hasStringCreator,
                                                 java.lang.String valueAsString)
                                          throws java.io.IOException
        Helper method to initialize Throwable
        Throws:
        java.io.IOException
        Since:
        2.16.2