Examples of ErrorCallback


Examples of com.google.collide.shared.util.ErrorCallback

    }
  }

  @Override
  public void recover() {
    fileConcurrencyController.recover(new ErrorCallback() {
      @Override
      public void onError() {
        StatusMessage fatal = new StatusMessage(appContext.getStatusManager(), MessageType.FATAL,
            "There was a problem synchronizing with the server.");
        fatal.addAction(StatusMessage.RELOAD_ACTION);
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());
        membersTable.setMembers(response);
      }
    },
    new ErrorCallback() {
      @Override
      public boolean error(Message message, Throwable throwable) {
        throwable.printStackTrace();
        memberForm.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.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

    button.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        MessageBuilder.createMessage()
                .toSubject("HelloWorldService")
                .withValue("Hello, There!")
                .errorsHandledBy(new ErrorCallback() {
                  @Override
                  public boolean error(Message message, Throwable throwable) {
                    throwable.printStackTrace();
                    return true;
                  }
View Full Code Here

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

    button.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        MessageBuilder.createMessage()
                .toSubject("HelloWorldService")
                .withValue("Hello, There!")
                .errorsHandledBy(new ErrorCallback() {
                  @Override
                  public boolean error(Message message, Throwable throwable) {
                    throwable.printStackTrace();
                    return true;
                  }
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

                        .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.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
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.