Package com.google.gerrit.client

Examples of com.google.gerrit.client.NotSignedInDialog


/** Abstract callback handling generic error conditions automatically */
public abstract class GerritCallback<T> implements AsyncCallback<T> {
  public void onFailure(final Throwable caught) {
    if (isNotSignedIn(caught) || isInvalidXSRF(caught)) {
      new NotSignedInDialog().center();

    } else if (isNoSuchEntity(caught)) {
      if (Gerrit.isSignedIn()) {
        new ErrorDialog(Gerrit.C.notFoundBody()).center();
      } else {
        new NotSignedInDialog().center();
      }
    } else if (isInactiveAccount(caught)) {
      new ErrorDialog(Gerrit.C.inactiveAccountBody()).center();

    } else if (isNoSuchAccount(caught)) {
View Full Code Here

TOP

Related Classes of com.google.gerrit.client.NotSignedInDialog

Copyright © 2018 www.massapicom. 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.