Class ThrowableSerializer
java.lang.Object
org.spincast.plugins.gson.serializers.ThrowableSerializer
- All Implemented Interfaces:
com.google.gson.JsonSerializer<Throwable>
-
Constructor Summary
ConstructorsConstructorDescriptionThrowableSerializer(org.spincast.core.json.JsonObjectFactory jsonObjectFactory, JsonObjectSerializer jsonObjectSerializer) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.spincast.core.json.JsonObjectFactoryprotected JsonObjectSerializercom.google.gson.JsonElementprotected org.spincast.core.json.JsonObject
-
Constructor Details
-
ThrowableSerializer
@Inject public ThrowableSerializer(org.spincast.core.json.JsonObjectFactory jsonObjectFactory, JsonObjectSerializer jsonObjectSerializer)
-
-
Method Details
-
getJsonObjectFactory
protected org.spincast.core.json.JsonObjectFactory getJsonObjectFactory() -
getJsonObjectSerializer
-
serialize
public com.google.gson.JsonElement serialize(Throwable ex, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serializein interfacecom.google.gson.JsonSerializer<Throwable>
-
toJsonObject
-