DatabindException 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, JsonGenerator g, SerializationContext provider)
Implements abstract tools. Method that can be called to ask implementation to serialize values of type this serializer handles. |
| _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, SerializationContext provider) throws JacksonException Implements abstract tools. Doc from tools. Method that can be called to ask implementation to serialize values of type this serializer handles.
| |