Record a error message with extra information attached.
@param message the message
@param custom the extra information
760727
public void error(String message, Map<String, Object> custom) {
    log(null, custom, message, Level.ERROR);
  }
1254432
public void critical(String message, Map<String, Object> custom) {
    critical(null, custom, message);
  }
588934
public void addError(String message, DiagnosticPosition pos) {
		ast.printMessage(Diagnostic.Kind.ERROR, message, null, pos, true);
	}
357613
public void addError(I_CmsXmlContentValue value, String message) {

        m_hasErrors = true;
        Locale locale = value.getLocale();
        Map<String, String> localeErrors = getLocalIssueMap(m_errors, locale);
        localeErrors.put(value.getPath(), message);

        if (LOG.isDebugEnabled()) {
            LOG.debug(
                Messages.get().getBundle().key(Messages.LOG_XMLCONTENT_VALIDATION_ERR_2, value.getPath(), message));
        }
    }
800978
protected function addError($name, $customMessage = null)
    {
        $this->errors[$name] = $customMessage ?: $this->message ?: $this->{$name . 'Message'};
    }
1190332
public static void error(Object message) {
		log(Level.ERROR, message, null, (Object[])null);
	}
1356817
def _write_message(self, message, extra):
        '''
        
        '''
        if not self.json:
            self._write_standard(message, extra)
        else:
            self._write_json(message, extra)
543398
public void debug(String message, Map<String, Object> custom) {
    debug(null, custom, message);
  }
553196
protected Response createInternalServerError(String message) {
    ErrorResponse entity = new ErrorResponse();
    entity.setMessage(message);
    return Response
      .status(Response.Status.INTERNAL_SERVER_ERROR)
      .entity(entity)
      .build();
  }
185495
public void reportError (String message, Throwable cause) {
    errors.emit(new Error(message, cause));
    log().warn(message, cause);
  }
726163
private static void addHeadersToMessage(SipServletMessage message, Map<String, String> customHeaders) {
         for (Map.Entry<String, String> entry: customHeaders.entrySet()) {
             String headerName = entry.getKey();
             String headerVal = entry.getValue();
             message.addHeader(headerName, headerVal);
         }
     }
1246834
public static void showErrorDialog(String message, String details) {

        Window window = prepareWindow(DialogWidth.wide);
        window.setCaption("Error");
        window.setContent(new CmsSetupErrorDialog(message, details, null, window));
        A_CmsUI.get().addWindow(window);

    }
919504
public void debug(String message, Map<String, Object> custom) {
    log(null, custom, message, Level.DEBUG);
  }
673059
@Override public void addError(String message) {
		ast.printMessage(Diagnostic.Kind.ERROR, message, this, null, true);
	}
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));
  }
1144932
public void debug(Throwable error, Map<String, Object> custom, String description) {
    log(error, custom, description, Level.DEBUG);
  }
967487
protected void addError(String errorKey, String errorMessage) {
		invalid = true;
		controller.setAttr(errorKey, errorMessage);
		if (shortCircuit) {
			throw new ValidateException();
		}
	}