Examples of ErrorCallback


Examples of org.jboss.errai.bus.client.api.ErrorCallback

                        .command(SecurityCommands.SecurityChallenge)
                        .with(SecurityParts.CredentialsRequired, "Name,Password")
                        .with(MessageParts.ReplyTo, ErraiService.AUTHORIZATION_SVC_SUBJECT)
                        .with(SecurityParts.RejectedMessage, ServerBusUtils.encodeJSON(message.getParts()))
                        .copyResource("Session", message)
                        .errorsHandledBy(new ErrorCallback() {
                            public boolean error(Message message, Throwable throwable) {
                                ErrorHelper.sendClientError(bus, message, "Could not contact LoginClient to handle access denial, due to insufficient privileges for: " + message.getSubject(), throwable);
                                return false;
                            }
                        })
View Full Code Here

Examples of org.jboss.errai.bus.client.api.ErrorCallback

        MessageBuilder.createCall(
            new RemoteCallback<Void>() {
              public void callback(Void response) {
              }
            },
            new ErrorCallback() {
              public boolean error(Message message, Throwable throwable) {
                try {
                  throw throwable;
                }
                catch (TestException e) {
View Full Code Here

Examples of org.jboss.errai.bus.client.api.ErrorCallback

      public void callback(List<Member> response) {
        GWT.log("Got member list. Size: " + response.size());
        kitchenSinkUi.setDisplayedMembers(response);
      }
    },
    new ErrorCallback() {
      @Override
      public boolean error(Message message, Throwable throwable) {
        throwable.printStackTrace();
        kitchenSinkUi.setGeneralErrorMessage("Failed to retrieve list of members: " + throwable.getMessage());
        return false;
View Full Code Here

Examples of org.jboss.errai.bus.client.api.ErrorCallback

            .command(SecurityCommands.SecurityChallenge)
            .with(SecurityParts.CredentialsRequired, "Name,Password")
            .with(MessageParts.ReplyTo, ErraiService.AUTHORIZATION_SVC_SUBJECT)
            .with(SecurityParts.RejectedMessage, ServerBusTools.encodeMessage(message))
            .copyResource("Session", message)
            .errorsHandledBy(new ErrorCallback() {
              public boolean error(Message message, Throwable throwable) {
                ErrorHelper.sendClientError(bus, message, throwable.getMessage(), throwable);
                return false;
              }
            })
View Full Code Here

Examples of org.jboss.errai.bus.client.api.ErrorCallback

            // the server will also broadcast a @New Member CDI event, which causes the table to update
            // so we don't have to do that here.
          }
        },
        new ErrorCallback() {
            @Override
            public boolean error(Message message, Throwable throwable) {
              registerConfirmMessage.setText("Member registration failed: " + throwable.getMessage());
              return false;
            }
View Full Code Here

Examples of org.jboss.errai.bus.client.api.ErrorCallback

      public void callback(List<Member> response) {
        GWT.log("Got member list. Size: " + response.size());
        kitchenSinkUi.setDisplayedMembers(response);
      }
    },
    new ErrorCallback() {
      @Override
      public boolean error(Message message, Throwable throwable) {
        throwable.printStackTrace();
        kitchenSinkUi.setGeneralErrorMessage("Failed to retrieve list of members: " + throwable.getMessage());
        return false;
View Full Code Here

Examples of org.jboss.errai.bus.client.api.ErrorCallback

                        .command(SecurityCommands.SecurityChallenge)
                        .with(SecurityParts.CredentialsRequired, "Name,Password")
                        .with(MessageParts.ReplyTo, ErraiService.AUTHORIZATION_SVC_SUBJECT)
                        .with(SecurityParts.RejectedMessage, ServerBusUtils.encodeJSON(message.getParts()))
                        .copyResource("Session", message)
                        .errorsHandledBy(new ErrorCallback() {
                            public boolean error(Message message, Throwable throwable) {
                                ErrorHelper.sendClientError(bus, message, throwable.getMessage(), throwable);
                                return false;
                            }
                        })
View Full Code Here

Examples of org.jboss.errai.common.client.api.ErrorCallback

        }
        onCompletion.callback(syncResponse);
      }
    };

    @SuppressWarnings("rawtypes")
    ErrorCallback errorCallback = new ErrorCallback() {
      @SuppressWarnings("unchecked")
      @Override
      public boolean error(Object message, Throwable throwable) {
        syncInProgress = false;
        ErrorCallback rawOnError = onError;
        return rawOnError.error(message, throwable);
      }
    };
    dataSyncService.call(onSuccess, errorCallback).coldSync(syncSet, syncRequests);
  }
View Full Code Here

Examples of org.jboss.errai.common.client.api.ErrorCallback

        }
        onCompletion.callback(syncResponse);
      }
    };

    @SuppressWarnings("rawtypes")
    ErrorCallback errorCallback = new ErrorCallback() {
      @SuppressWarnings("unchecked")
      @Override
      public boolean error(Object message, Throwable throwable) {
        syncInProgress = false;
        ErrorCallback rawOnError = onError == null ? DEFAULT_ERROR_CALLBACK : onError;
        return rawOnError.error(message, throwable);
      }
    };
   
    dataSyncService.call(onSuccess, errorCallback).coldSync(syncSet, syncRequests);
  }
View Full Code Here

Examples of org.jboss.errai.common.client.api.ErrorCallback

        }
        onCompletion.callback(syncResponse);
      }
    };

    @SuppressWarnings("rawtypes")
    ErrorCallback errorCallback = new ErrorCallback() {
      @SuppressWarnings("unchecked")
      @Override
      public boolean error(Object message, Throwable throwable) {
        syncInProgress = false;
        ErrorCallback rawOnError = onError;
        return rawOnError.error(message, throwable);
      }
    };
    dataSyncService.call(onSuccess, errorCallback).coldSync(syncSet, syncRequests);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.