com.fasterxml.jackson.databind.deser.impl.UnsupportedTypeDeserializer Maven / Gradle / Ivy
package com.fasterxml.jackson.databind.deser.impl;
import java.io.IOException;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
/**
* Special bogus "serializer" that will throw
* {@link com.fasterxml.jackson.databind.exc.MismatchedInputException}
* if an attempt is made to deserialize a value.
* This is used for "known unknown" types: types that we can recognize
* but can not support easily (or support known to be added via extension
* module).
*
* NOTE: starting with 2.13, does allow deserialization from
* {@code JsonToken.VALUE_EMBEDDED_OBJECT} if type matches (or is {@code null}).
*
* @since 2.12
*/
public class UnsupportedTypeDeserializer extends StdDeserializer