summaryrefslogtreecommitdiff
path: root/altoslib
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-06-17 08:26:31 -0700
committerKeith Packard <keithp@keithp.com>2016-06-17 08:26:31 -0700
commite8250fcb267a34fbbd8b88c6dcc8eec419bbcc68 (patch)
tree3bd0b17008c64c7ea1fc49b641b134d2edd80440 /altoslib
parenta46df4f69984e3ef0064c2b211438c8d8ffaab68 (diff)
altoslib: Add back some JSON exception debugging printfs
These make it possible to figure out where the JSON code went wrong. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib')
-rw-r--r--altoslib/AltosJson.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/altoslib/AltosJson.java b/altoslib/AltosJson.java
index 80d83e48..346144d9 100644
--- a/altoslib/AltosJson.java
+++ b/altoslib/AltosJson.java
@@ -1080,17 +1080,27 @@ public class AltosJson extends JsonUtil {
field.set(object, val);
}
} catch (IllegalAccessException ie) {
+ System.out.printf("%s:%s %s\n",
+ c.getName(), fieldName, ie.toString());
}
}
}
ret = object;
} catch (InvocationTargetException ie) {
+ System.out.printf("%s: %s\n",
+ c.getName(), ie.toString());
ret = null;
} catch (NoSuchMethodException ie) {
+ System.out.printf("%s: %s\n",
+ c.getName(), ie.toString());
ret = null;
} catch (InstantiationException ie) {
+ System.out.printf("%s: %s\n",
+ c.getName(), ie.toString());
ret = null;
} catch (IllegalAccessException ie) {
+ System.out.printf("%s: %s\n",
+ c.getName(), ie.toString());
ret = null;
}
}
@@ -1223,6 +1233,8 @@ public class AltosJson extends JsonUtil {
put(fieldName, json);
}
} catch (IllegalAccessException ie) {
+ System.out.printf("%s:%s %s\n",
+ c.getName(), fieldName, ie.toString());
}
}
}