com.fitbur.jackson.databind.deser.impl.FailingDeserializer Maven / Gradle / Ivy
package com.fitbur.jackson.databind.deser.impl;
import com.fitbur.jackson.core.JsonParser;
import com.fitbur.jackson.databind.DeserializationContext;
import com.fitbur.jackson.databind.JsonMappingException;
import com.fitbur.jackson.databind.deser.std.StdDeserializer;
/**
* Special bogus "serializer" that will throw
* {@link JsonMappingException} if an attempt is made to deserialize
* a value. This is used as placeholder to avoid NPEs for uninitialized
* structured serializers or handlers.
*/
public class FailingDeserializer extends StdDeserializer