JsonObject rr = new JsonObject();
rr.add("error", new JsonPrimitive(new IOException("OID cannot be null").getMessage()));
userCallback.handle(rr);
return;
}
final Oid oid;
try {
oid = new Oid(oidAsString);
} catch (Exception e) {
JsonObject rr = new JsonObject();
rr.add("error", new JsonPrimitive(new IOException("Invalid OID", e).getMessage()));
userCallback.handle(rr);
return;