Class UnsupportedTypeSerializer

All Implemented Interfaces:
JsonFormatVisitable

public class UnsupportedTypeSerializer extends StdSerializer<Object>
Special bogus "serializer" that will throw InvalidDefinitionException if its serialize(java.lang.Object, tools.jackson.core.JsonGenerator, tools.jackson.databind.SerializationContext) gets invoked. Most commonly registered as handler for unknown types, as well as for catching unintended usage (like trying to use null as Map/Object key).
  • Field Details

    • _type

      protected final JavaType _type
    • _message

      protected final String _message
  • Constructor Details

    • UnsupportedTypeSerializer

      public UnsupportedTypeSerializer(JavaType t, String msg)
  • Method Details