Adding details in the throw exception on a missing field.

This commit is contained in:
Inderjeet Singh 2015-11-16 09:12:23 -08:00
parent f8105f0006
commit 05b17f9271

View File

@ -796,7 +796,7 @@ public final class TypeAdapters {
constantToName.put(constant, name);
}
} catch (NoSuchFieldException e) {
throw new AssertionError();
throw new AssertionError("Missing field in " + classOfT.getName(), e);
}
}
@Override public T read(JsonReader in) throws IOException {