Displays a popup reporting the specified error, near the specified widget if it is non-null.
338062
protected void showError (Throwable cause, Widget near)
    {
        if (near == null) {
            Popups.error(formatError(cause));
        } else {
            Popups.errorBelow(formatError(cause), near);
        }
    }
1050862
public void displayValidationError(final String message) {
        final StringBuilder updatedMsg = new StringBuilder(FontAwesome.EXCLAMATION_TRIANGLE.getHtml());
        updatedMsg.append(' ');
        updatedMsg.append(message);
        notificationMessage.showNotification(SPUIStyleDefinitions.SP_NOTIFICATION_ERROR_MESSAGE_STYLE, null,
                updatedMsg.toString(), true);
    }
296071
protected void showError() {

        if (hasError()) {
            m_label.getElement().getStyle().clearDisplay();
            CmsFadeAnimation.fadeIn(m_label.getElement(), new Command() {

                /**
                 * @see com.google.gwt.user.client.Command#execute()
                 */
                public void execute() {

                    // noop
                }
            }, 300);
        }
    }
373011
function(error) {
    // Clear pending redirect status if redirect on Cordova fails.
    firebaseui.auth.storage.removePendingRedirectStatus(app.getAppId());
    // Ignore error if cancelled by the client.
    if (error['name'] && error['name'] == 'cancel') {
      return;
    }
    switch (error['code']) {
      case 'auth/popup-blocked':
        // Popup blocked, switch to redirect flow as fallback.
         processRedirect();
        break;
      case 'auth/popup-closed-by-user':
      case 'auth/cancelled-popup-request':
        // When popup is closed or when the user clicks another button,
        // do nothing.
        break;
      case 'auth/credential-already-in-use':
        // Do nothing when anonymous user is getting updated.
        // Developer should handle this in signInFailure callback.
        break;
      case 'auth/network-request-failed':
      case 'auth/too-many-requests':
      case 'auth/user-cancelled':
        // For no action errors like network error, just display in info
        // bar in current component. A second attempt could still work.
        component.showInfoBar(
            firebaseui.auth.widget.handler.common.getErrorMessage(error));
        break;
      default:
        // Either linking required errors or errors that are
        // unrecoverable.
        component.dispose();
        firebaseui.auth.widget.handler.handle(
            firebaseui.auth.widget.HandlerName.CALLBACK,
            app,
            container,
            goog.Promise.reject(error));
        break;
    }
  }
1315287
public void displayError(int iErrorCode)
    {
        if (iErrorCode < -2)
        {   // Error codes < -2 are usually user defined (and available at 'LastError')
            Task task = this.getTask();//getAppletScreen().getScreenFieldView().getControl();
            if (task != null)
            {
                String strError = task.getLastError(iErrorCode);
                if ((strError != null) && (strError.length() > 0))
                {
                    this.displayError(strError);
                    return;
                }
            }
        }
        DBException e = new DBException(iErrorCode);
        this.displayError(e);
    }
483036
public static void detectAndApply(Widget widget) {
        if (!widget.isAttached()) {
            widget.addAttachHandler(event -> {
                if (event.isAttached()) {
                    detectAndApply();
                }
            });
        } else {
            detectAndApply();
        }
    }
1312594
def show_script_error(self):
        
        # TODO: i18n
        if self.service.scriptRunner.error:
            details = self.service.scriptRunner.error
            self.service.scriptRunner.error = ''
        else:
            details = "No error information available"
        QMessageBox.information(None, "View Script Error Details", details)
241685
function() {
    var errorMessage =
        firebaseui.auth.widget.handler.common.getErrorMessage(emailExistsError);
    firebaseui.auth.ui.element.setValid(component.getEmailElement(), false);
    firebaseui.auth.ui.element.show(
        component.getEmailErrorElement(), errorMessage);
    component.getEmailElement().focus();
  }
599116
private void checkRelaxed(String errorMessage) {
		if (!relaxed) {
			throw new KriptonRuntimeException(errorMessage, true, this.getLineNumber(), this.getColumnNumber(), getPositionDescription(), null);
		}
		if (error == null) {
			error = "Error: " + errorMessage;
		}
	}
1197152
private void showPopup() {

        updateFromTextBox(true);
        m_box.setPreventShowError(true);
        m_popup.showRelativeTo(m_box);
        if (m_previewHandlerRegistration != null) {
            m_previewHandlerRegistration.removeHandler();
        }
        m_previewHandlerRegistration = Event.addNativePreviewHandler(new CloseEventPreviewHandler());
    }
868738
static void showErrorMessage(Exception e, Component parent) {
    String msg = e.getMessage();
    JOptionPane.showMessageDialog(parent, msg, "Error", JOptionPane.ERROR_MESSAGE);
    e.printStackTrace();
  }
719349
private void reportError(ErrorReporter errorReporter, SoyAutoescapeException e) {
    // First, get to the root cause of the exception, and assemble an error message indicating
    // the full call stack that led to the failure.
    String message = "- " + e.getOriginalMessage();
    while (e.getCause() instanceof SoyAutoescapeException) {
      e = (SoyAutoescapeException) e.getCause();
      message += "\n- " + e.getMessage();
    }
    errorReporter.report(e.getSourceLocation(), AUTOESCAPE_ERROR, message);
  }
171545
void showValidationErrorDialog(CmsValidationResult validationResult) {

        if (validationResult.getErrors().keySet().contains(m_entityId)) {
            getValidationHandler().displayValidation(m_entityId, validationResult);
        }
        String errorLocales = "";
        for (String entityId : validationResult.getErrors().keySet()) {
            String locale = CmsContentDefinition.getLocaleFromId(entityId);
            errorLocales += m_availableLocales.get(locale) + ", ";
        }
        // remove trailing ','
        errorLocales = errorLocales.substring(0, errorLocales.length() - 2);
        CmsErrorDialog dialog = new CmsErrorDialog(
            Messages.get().key(Messages.GUI_VALIDATION_ERROR_1, errorLocales),
            null);
        dialog.center();
    }
828483
protected function showFatalError()
    {
        $error = error_get_last();
        switch ($error['type']) {
            case E_ERROR:
            case E_CORE_ERROR:
            case E_COMPILE_ERROR:
            case E_USER_ERROR:
            case E_RECOVERABLE_ERROR:
            case E_CORE_WARNING:
            case E_COMPILE_WARNING:
            case E_PARSE:
                ob_clean();
                echo $this->htmlReport([
                    'mode' => 'fatal',
                    'error' => 'Error while building pages',
                    'summary' => $this->summary,
                    'errorTitle' => 'Failed to build page <code>' . $this->lastpage . '</code>',
                    'errorDetails' => $error['message'] . "<br>\n"
                        . 'In ' . $error['file'] . ', line ' . $error['line']
                ]);
        }
    }
24115
function errorDialog(text, err) {
    var msg = err && err.message ?
      err.message.split(/\r?\n/)[0] :
      typeof err === "string" ?
        err.split(/\r?\n/)[0] :
        JSON.stringify(err);
    return window.alert(text+ ':\n' + msg);
  }
668027
function(err) {
            Dialogs.alert("Error:", err.message || err);
            console.error(err.stack || err.message || err);
            return Q.reject(err);
        }
1135120
void onClickOk() {

        CmsContainerPageCopier copier = new CmsContainerPageCopier(m_context.getCms());
        try {
            CmsContainerPageCopier.CopyMode mode = (CmsContainerPageCopier.CopyMode)(m_copyMode.getValue());
            copier.setCopyMode(mode);
            TargetInfo info = new TargetInfo(m_context.getCms(), m_targetSelect.getValue());
            if (!info.isValid()) {
                Type type = Type.ERROR_MESSAGE;
                String error = CmsVaadinUtils.getMessageText(Messages.GUI_COPYPAGE_INVALID_TARGET_0);
                Notification.show(error, type);
                return;
            }
            CmsResource targetFolder = info.getTargetFolder();
            copier.run(m_context.getResources().get(0), targetFolder, info.getTargetName());
            m_context.finish(
                Arrays.asList(
                    copier.getTargetFolder().getStructureId(),
                    copier.getCopiedFolderOrPage().getStructureId()));
        } catch (CmsException e) {
            m_context.error(e);
        } catch (NoCustomReplacementException e) {
            String errorMessage = CmsVaadinUtils.getMessageText(
                Messages.GUI_COPYPAGE_NO_REPLACEMENT_FOUND_1,
                e.getResource().getRootPath());
            CmsErrorDialog.showErrorDialog(errorMessage, e);
        }
    }