public class ThrowableTypeAdapter
extends com.google.gson.TypeAdapter<java.lang.Throwable>
Throwable. This is used to report issues to the sender of a request.| Modifier and Type | Class and Description |
|---|---|
static class |
ThrowableTypeAdapter.Factory |
| Constructor and Description |
|---|
ThrowableTypeAdapter(com.google.gson.reflect.TypeToken<java.lang.Throwable> typeToken) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
read(com.google.gson.stream.JsonReader in) |
void |
write(com.google.gson.stream.JsonWriter out,
java.lang.Throwable throwable) |
public ThrowableTypeAdapter(com.google.gson.reflect.TypeToken<java.lang.Throwable> typeToken)
public java.lang.Throwable read(com.google.gson.stream.JsonReader in)
throws java.io.IOException
read in class com.google.gson.TypeAdapter<java.lang.Throwable>java.io.IOExceptionpublic void write(com.google.gson.stream.JsonWriter out,
java.lang.Throwable throwable)
throws java.io.IOException
write in class com.google.gson.TypeAdapter<java.lang.Throwable>java.io.IOException