Shows the error dialog.<p>

@param message the error message
@param t the error to be displayed
@param onClose executed on close
553782
public static void showErrorDialog(String message, Throwable t, Runnable onClose) {

        Window window = prepareWindow(DialogWidth.wide);
        window.setCaption(Messages.get().getBundle(A_CmsUI.get().getLocale()).key(Messages.GUI_ERROR_0));
        window.setContent(new CmsErrorDialog(message, t, onClose, window));
        A_CmsUI.get().addWindow(window);
    }
753280
@Override
    @SuppressFBWarnings("DM_EXIT")
    public void logError(String message) {
        System.err.println("Error: " + message);
        System.exit(1);
    }
1238373
public static void printError(Object caller, Object message)
	{
		
		StringBuilder text = new StringBuilder();

		Class<?> c = callerBuilder(caller, text);

		if(message instanceof Throwable)
			getLog(c).error(text.append(stackTrace((Throwable)message)));
		else
			getLog(c).error(text.append(message));

	}
421521
protected void logInternalError(String message) {
		if (this.log.isLoggable(Level.FINEST) && !Strings.isNullOrEmpty(message)) {
			this.log.log(Level.FINEST,
					MessageFormat.format(Messages.SARLJvmModelInferrer_1,
							Messages.SARLJvmModelInferrer_0, message));
		}
	}
818337
protected void showErrorDialog(String message, String title) {
		JOptionPane.showMessageDialog(this, message, title, JOptionPane.ERROR_MESSAGE);
	}
727429
public void error(String msg, Throwable t)
	{
		log(LogLevel.ERROR, msg, t);
	}
315345
public static void error(String message) {
    errorMessages.add(message);
    errorStream.println(getFullMessage("error: ", message, CLANG_STYLE_ERROR_MSG));
    errorCount++;
  }
812960
public void error(Object message) {
        log(Level.SEVERE, String.valueOf(message), null);
    }
516765
@Override
    public void onClose(Session session, CloseReason closeReason) {
        if (onClose != null) {
            Object args[] = new Object[onClose.getMethod().getParameterTypes().length];
            MethodData methodData = onClose.getMethodData();
            //check if method has optional Session parameter
            int sessionIndex = methodData.getSessionIndex();
            if (sessionIndex >= 0) {
                args[sessionIndex] = session;
            }
            //check if method has optional closeReason parameter
            int reasonIndex = methodData.getCloseReasonIndex();
            if (reasonIndex >= 0) {
                args[reasonIndex] = closeReason;
            }
            if (shouldProcessPath) {
                try {
                    //substitute values for @PathParam values for this method.
                    onClose.processPathParameters(this, args);
                } catch (DecodeException e) {
                    /*
                     * JSR 356 @PathParam section
                     * "If the container cannot decode the path segment appropriately to the annotated path parameter, then the container must raise an DecodeException to the error
                     * handling method of the websocket containing the path segment. [WSC-4.3-6]"
                     * Section
                     * 4.
                     * 5:"If the method itself throws an error, the implementation must pass this error to the onError() method of the endpoint together with the session [WSC-4.5-3]"
                     */
                    this.onError(session, e);
                    return;
                }
            }

            try {
                if (appInstance == null) {
                    if (tc.isDebugEnabled()) {
                        Tr.debug(tc, "application instance is null in onClose");
                    }
                    return;
                }

                onClose.getMethod().invoke(appInstance, args);

            } catch (IllegalAccessException e) {
                //JSR 356 Section 4.5:  "If the method itself throws an error, the implementation
                //must pass this error to the onError() method of the endpoint together with the session [WSC-4.5-3]"
                this.onError(session, e);
            } catch (IllegalArgumentException e) {
                this.onError(session, e);
            } catch (InvocationTargetException e) {
                this.onError(session, e);
            }
        } else { //onClose method is not defined, hence log the problem in trace
            if (tc.isDebugEnabled()) {
                Tr.debug(tc, "onClose() is called on Endpoint class: " + sepClass + " which does not have onClose method defined");
            }
        }
    }
1218449
public void javacError(String message, Throwable t) {
		messager.printMessage(Diagnostic.Kind.ERROR, message + (t == null ? "" : (": " + t)));
		if (t != null) t.printStackTrace();
	}
317439
public void error(String message, String sourceString,
                    int position, int startPosition, int endPosition,
                    Object info) {
    report(new AnnotationReport(Kind.ERROR, message, sourceString,
                                position, startPosition, endPosition, info));
  }
1078210
protected void closeSession(final String message, final Throwable t) {
        if (t != null) {
            LOGGER.error(message, t);
            proxyIoSession.setAuthenticationFailed(true);
        } else {
            LOGGER.error(message);
        }

        getSession().close(true);
    }
834328
public void debug(Object message, Throwable t) {
        logger.debug(String.valueOf(message), t);
    }
686640
public static void error(String msg, Throwable t) {
        if (quietMode)
            return;

        System.err.println(ERR_PREFIX + msg);
        if (t != null) {
            t.printStackTrace();
        }
    }
588397
public void onLockFail(String errorMessage) {

        m_editor.disableEditing(errorMessage);
        CmsAlertDialog alert = new CmsAlertDialog(
            Messages.get().key(Messages.ERR_LOCK_TITLE_RESOURCE_LOCKED_0),
            errorMessage);
        alert.addCloseHandler(new CloseHandler<PopupPanel>() {

            public void onClose(CloseEvent<PopupPanel> event) {

                m_controller.reloadPage();
            }
        });

        alert.center();
    }
895290
public void error(String message, Object ... args) {
    if (log.isErrorEnabled()) {
      log.error(String.format(message, args));
    }
  }
1314705
public void error(String message, Object... args) {
		if (!NONE.equals(this.logLevel)) {
			System.out.println(String.format(message, args));
		}
	}