Get the error message.
The message is json ignored, so that no serialize/deserialize.
@return the error message String.
501258
@JsonIgnore
    public String getErrorMessage() {
        return (params.length == 0) ? exceptionCode.getMessageTemplate() :
                String.format(exceptionCode.getMessageTemplate(), params);
    }
1172972
public String getMessage ()
    {
    String message = super.getMessage();

    if (message == null && exception != null) {
        return exception.getMessage();
    } else {
        return message;
    }
    }
310087
public String getMessage(final String code) {
        assert code != null;
        
        MissingResourceException error = null;
        
        ResourceBundle[] bundles = getBundles();
        
        for (int i=0; i<bundles.length; i++) {
            try {
                return bundles[i].getString(code);
            }
            catch (MissingResourceException e) {
                //
                // FIXME: For now just save the first error, should really roll a new message with all of the details
                //
                
                if (error != null) {
                    error = e;
                }
            }
        }
        
        assert error != null;
        
        throw error;
    }
841063
def _error_message(self):
        
        body = self._deserialize()
        return body.get('message', body) if isinstance(body, dict) else body
1165584
public String parseErrorMessage(HttpResponse httpResponse, JsonNode jsonNode) {
        // If X_AMZN_ERROR_MESSAGE is present, prefer that. Otherwise check the JSON body.
        final String headerMessage = httpResponse.getHeader(X_AMZN_ERROR_MESSAGE);
        if (headerMessage != null) {
            return headerMessage;
        }
        for (String field : errorMessageJsonLocations) {
            JsonNode value = jsonNode.get(field);
            if (value != null && value.isTextual()) {
                return value.asText();
            }
        }
        return null;
    }
1280719
public String getReason()
    {
        if (_reason!=null)
            return _reason;
        _reason=(String)__statusMsg.get(TypeUtil.newInteger(_status));
        if (_reason==null)
            _reason="unknown";
        return _reason;
    }
1344801
public function error()
    {

        $res = $this->response();

        if (!$res) {
            return null;
        }

        if ($this->ok()) {
            return null;
        }

        $message = ($res->getStatusCode() ? $res->getStatusCode() . ' ' : '') .
                   ($res->getReasonPhrase() ? $res->getReasonPhrase() : 'Unknown response reason phrase');

        try {

            $data = $this->json();

            if (!empty($data->message)) {
                $message = $data->message;
            }

            if (!empty($data->error_description)) {
                $message = $data->error_description;
            }

            if (!empty($data->description)) {
                $message = $data->description;
            }

        } catch (Exception $e) {
            // This should never happen
            $message .= ' (and additional error happened during JSON parse: ' . $e->getMessage() . ')';
        }

        return $message;

    }
1181149
@Override
    public String toJSONString()
    {
        final JSONObject object = toJSONObject();

        if (null != object)
        {
            return object.toString();
        }
        return null;
    }
785536
def rest_error(self):
    
    error_json = self.__format_error('errors')
    return json.dumps(error_json, indent=1, sort_keys=True)
1326809
public String getMessage()
    {
        if (code == NO_DATA)
            return "A document cannot be added without resource data.";
        else if (code == NO_LOCATOR)
            return "A document cannot be added without a resource locator.";
        else if (code == INVALID_JSON)
            return "The provided JSON could not be compiled. Check that the JSON provided is valid.";
        else if (code == NOT_CONFIGURED)
            return "The exporter must be configured before this action can be taken.";
        else if (code == BENCODE_FAILED)
            return "The document could not be bencoded. The resource data may be an invalid structure.";
        else if (code == SIGNING_FAILED)
            return "The document could not be digitally signed. Check that the private key data is correct.";
        else if (code == NO_KEY)
            return "No private key could be found in the provided private key data.";
        else if (code == NO_KEY_STREAM)
            return "The private key data could not be accessed. Check that a valid local file or valid private key dump is provided.";
        else if (code == NULL_FIELD)
            return "A required field was not provided with valid input.";
        else if (code == BATCH_ZERO)
            return "Batch size must be larger than zero.";
        else if (code == NO_DOCUMENTS)
            return "At least one document must be included in order to send data.";
        else if (code == NO_RESPONSE)
            return "The Learning Registry node did not return a response to the request.";
        else if (code == INVALID_RESPONSE)
            return "The response from the Learning Registry node did not match the form of an expected response.";
        else if (code == JSON_FAILED)
            return "The batch of documents could not be converted to a JSON string. Check that no invalid characters were included in the data of any document.";
        else if (code == JSON_IMPORT_FAILED)
            return "The batch of documents could not be converted to a JSON string. Check that the node did not return an error or invalid JSON.";
        else if (code == IMPORT_FAILED)
            return "Capturing data from the node failed. Please check that the node is running and returning results properly.";
        else if (code == INPUT_STREAM_FAILED)
			return "The provided inputs could not be converted into input streams.";
		else if (code == SIGNATURE_NOT_FOUND)
			return "A signature matching the provided key could not be found.";
		else if (code == SIGNATURE_INVALID)
			return "The signature stream does not contain a valid signature.";
		else if (code == MESSAGE_INVALID)
			return "The message stream could not be parsed.";
		else if (code == INVALID_PUBLIC_KEY)
			return "The public key stream does not contain a valid public key.";
		else
            return "An unknown error has ocurred.";
    }
1194970
public function getErrorMessage()
    {
        $errorValue = null;
        if ($this->hasError()) {
            $errorValue = (string) $this->xmlElement->errors->error;
        }
        return $errorValue;
    }
1362568
public String getErrorMessage() {
        final Object result = getStateHelper().eval(PropertyKeys.errorMessage);
        if (result == null) {
            return null;
        }
        return result.toString();
    }
686797
@Override
    public String getMessage() {
        final int maxTipLength = 10;
        int end = position + 1;
        int start = end - maxTipLength;
        if (start < 0) {
            start = 0;
        }
        if (end > jsonString.length()) {
            end = jsonString.length();
        }
        return String.format("%s (%d):%s", jsonString.substring(start, end), position, super.getMessage());
    }
1774
public JSONObject getMessage() throws ActivityException {
        String message = null;
        String slackMessageName = getAttributeValueSmart(SLACK_MESSAGE);
        if (slackMessageName == null)
            throw new ActivityException("slack message attribute is not set");
        Asset template = AssetCache.getAsset(slackMessageName);

        if (template == null) {
            message = slackMessageName;
        }
        else {
            message = context.evaluateToString(template.getStringContent());
        }

        JSONObject json = new JSONObject();
        String env = ApplicationContext.getRuntimeEnvironment().toUpperCase();
        json.put("text", env + " - " + getSlackPrefix() + " - " + message);

        String altText = null;
        if (json.has("text")) {
            String text = json.getString("text");
            if (text.length() > 200)
                altText = text.substring(0, 197) + "...";
        }
        if (altText != null)
            json.put("text", altText);
        return json;
    }
606929
public String
getErrorString() {
	checkDone();
	if (error != null)
		return error;
	switch (result) {
		case SUCCESSFUL:	return "successful";
		case UNRECOVERABLE:	return "unrecoverable error";
		case TRY_AGAIN:		return "try again";
		case HOST_NOT_FOUND:	return "host not found";
		case TYPE_NOT_FOUND:	return "type not found";
	}
	throw new IllegalStateException("unknown result");
}
654664
public String getError() {
    if (GoldenGrammarError_Type.featOkTst
        && ((GoldenGrammarError_Type) jcasType).casFeat_error == null)
      jcasType.jcas.throwFeatMissing("error", "cogroo.uima.GoldenGrammarError");
    return jcasType.ll_cas.ll_getStringValue(addr,
        ((GoldenGrammarError_Type) jcasType).casFeatCode_error);
  }
768056
public List<String> getMessages() {
        List<String> errorMessages = new ArrayList<>();
        for (ValidationError error : errors) {
            errorMessages.add(error.getMessage());
        }
        return errorMessages;
    }