Report an error with the given message for the given source element.

@param message a {@link java.lang.String} object.
@param source a {@link org.w3c.dom.Element} object.
@param cause a {@link java.lang.Throwable} object.
774510
protected void error(String message, Element source, Throwable cause) {
    logger.error(message);
  }
1060902
public void addWarning(WarningMessage message) {
        if (message.isRelevant(configuration.getWarningLevel())) {
            if (this.warnings == null) {
                this.warnings = new LinkedList();
            }

            this.warnings.add(message);
        }
    }
753280
@Override
    @SuppressFBWarnings("DM_EXIT")
    public void logError(String message) {
        System.err.println("Error: " + message);
        System.exit(1);
    }
653507
public static void fail(String message, String reason)
  {
    if (message != null && message.length() > 0)
      fail(message + ": " + reason);
    else
      fail(reason);
  }
949049
public void error(final String message, final Throwable throwable) {
        log.error(sanitize(message), throwable);
    }
1211719
public void error(Object message) {
        doLog(Level.ERROR, FQCN, message, null, null);
    }
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));

	}
1265372
public void warn(String message, Object... args) {
    warn(String.format(message, args), getThrowable(args));
  }
1218449
public void javacError(String message, Throwable t) {
		messager.printMessage(Diagnostic.Kind.ERROR, message + (t == null ? "" : (": " + t)));
		if (t != null) t.printStackTrace();
	}
305683
protected String handleError(final String message) {
        notifier().error(formatMessage(message));
        return formatMessage(message);
    }
812960
public void error(Object message) {
        log(Level.SEVERE, String.valueOf(message), null);
    }
803322
@Override
	public void error(String message, String sourceName, int line, String lineSource, int lineOffset) {

		// Only log the first error...
		if (this.errorLine < 1) {
			this.errorLine = line;
			this.yuiErrorMessage = message;
		} else if (this.errorLine == line) {
			this.yuiErrorMessage += "] [" + message;
		}
	}
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);
    }
680370
void logError(final String message) {
      if(logger != null) {
         try {
            StringBuilder buf = new StringBuilder(name);
            buf.append(":");
            buf.append(message);
            logger.error(buf.toString());            
         } catch(Throwable t) {
            //Ignore - logging should not kill anything
         }
      }
   }
35977
protected void addViolation(MethodCallExpression node, String message) {
        if (node.getLineNumber() >= 0) {
            int lineNumber = AstUtil.findFirstNonAnnotationLine(node, sourceCode);
            String sourceLine = sourceCode.line(AstUtil.findFirstNonAnnotationLine(node, sourceCode) - 1);
            Violation violation = new Violation();
            violation.setRule(rule);
            violation.setLineNumber(lineNumber);
            violation.setSourceLine(sourceLine);
            if (currentClassNode != null) {
                violation.setMessage(String.format(
                        "Violation in class %s. %s", currentClassNode.getName(), message
                ));
            } else {
                violation.setMessage(message);
            }
            violations.add(violation);
        }
    }
426593
protected static void reportError(String message, Object... parameters) {
		Throwable cause = null;
		for (int i = 0; cause == null && i < parameters.length; ++i) {
			if (parameters[i] instanceof Throwable) {
				cause = (Throwable) parameters[i];
			}
		}
		final String msg = MessageFormat.format(message, parameters);
		if (cause != null) {
			throw new ParsingException(msg, null, 1, Throwables.getRootCause(cause));
		}
		throw new ParsingException(msg, null, 1);
	}
165477
public void warn(final IJNRPEExecutionContext ctx, final String message) {
        postEvent(ctx, new LogEvent(source, LogEventType.WARNING, message));
    }