136137138139140141142143144145146
@Override public void onError(Request req, Throwable err) { RpcStatus.INSTANCE.onRpcComplete(); if (err.getMessage().contains("XmlHttpRequest.status")) { cb.onFailure(new ServerUnavailableException()); } else { cb.onFailure(err); } } });