6465666768697071727374
} }).cast(); IO io1 = Y.newIO(ioConfig); //send a request. Response resp = io1.send(uri1, ioConfig); //send an other - should trigger "failure" event io1.send(nonExistentUri, ioConfig);
115116117118119120121
public void call(IOEvent e) { Window.alert("FAILURE. Status: "+e.data().status()+" - "+e.data().statusText()); } }).cast(); IO io1 = Y.newIO(ioConfig); Response resp = io1.send(uri1, ioConfig); }