Deprecated
as a consequence of StdSerializer being deprecated. See corresponding docs for further information.
JsonMappingException if its serialize
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).
| Modifier and Type | Field and Description |
|---|---|
| protected final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | serialize(Object
Value to serialize; can not be null. value, JsonGenerator Generator used to output resulting Json content g, SerializerProvider Provider that can be used to get serializers for
serializing Objects value contains, if any. ctxt)Implements abstract com. |
| _msg | back to summary |
|---|---|
| protected final String _msg | |
| FailingSerializer | back to summary |
|---|---|
| public FailingSerializer(String msg) | |
| serialize | back to summary |
|---|---|
| public void serialize(Object value, JsonGenerator g, SerializerProvider ctxt) throws IOException Implements abstract com. Doc from com. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |