JsonObject rr = new JsonObject();
rr.add("error", new JsonPrimitive(new IOException("Invalid OID", e).getMessage()));
userCallback.handle(rr);
return;
}
c.connect(new SnmpClientHandler() {
@Override
public void failed(IOException e) {
JsonObject r = new JsonObject();
r.add("error", new JsonPrimitive(e.getMessage()));
userCallback.handle(r);