Class ThrowableJsonSerializer
- java.lang.Object
-
- org.eclipse.keyple.core.util.json.ThrowableJsonSerializer
-
- All Implemented Interfaces:
com.google.gson.JsonSerializer<java.lang.Throwable>
public class ThrowableJsonSerializer extends java.lang.Object implements com.google.gson.JsonSerializer<java.lang.Throwable>
Serializer of aThrowable
.Only the field "message" is serialized during the process.
- Since:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description ThrowableJsonSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gson.JsonElement
serialize(java.lang.Throwable exception, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-