添加聊天室消息优先级方法 方法
        @param  objectName:低优先级的消息类型，每次最多提交 5 个，设置的消息类型最多不超过 20 个。（必传）
	 
        @return code:返回码，200 为正常。
        @return errorMessage:错误信息。
176249
def addPriority(self, objectName):
        

        desc = {
            "name": "CodeSuccessReslut",
            "desc": " http 成功返回结果",
            "fields": [{
                "name": "code",
                "type": "Integer",
                "desc": "返回码，200 为正常。"
            }, {
                "name": "errorMessage",
                "type": "String",
                "desc": "错误信息。"
            }]
        }
        r = self.call_api(
            method=('API', 'POST', 'application/x-www-form-urlencoded'),
            action='/chatroom/message/priority/add.json',
            params={"objectName": objectName})
        return Response(r, desc)
1318866
public static <T> T checkNotEmpty(T reference,  Object errorMessage) {
        checkNotNull(reference, "Expected not null object, got '%s'", reference);
        checkNotEmpty(reference, String.valueOf(errorMessage), Arrays2.EMPTY_ARRAY);
        return reference;
    }
939638
@Override
    public ScopedMessageHandler errors() {
        if (errorsHandler == null) {
            synchronized (this) {
                if (errorsHandler == null) {
                    errorsHandler = createScopedMessageHandler(getErrorMessagesKey());
                }
            }
        }
        return errorsHandler;
    }
526353
protected MultiValueMap<String, Object> buildResponseEntityErrorModel(final HttpStatus code, final String message) {
        return CollectionUtils.asMultiValueMap("code",
            code.value(),
            "message", message);
    }
719512
protected String escapeObjectName(ObjectName objectName) {
        StringBuilder result = new StringBuilder();
        appendEscapedNonAlphaNumericChars(objectName.getDomain(), result);
        result.append('.');
        List<String> keys = Collections.list(objectName.getKeyPropertyList().keys());
        Collections.sort(keys);
        for (Iterator<String> it = keys.iterator(); it.hasNext(); ) {
            String key = it.next();
            appendEscapedNonAlphaNumericChars(key, result);
            result.append("__");
            appendEscapedNonAlphaNumericChars(objectName.getKeyProperty(key), result);
            if (it.hasNext()) {
                result.append('.');
            }
        }
        logger.trace("escapeObjectName({}): {}", objectName, result);
        return result.toString();
    }
533560
function(errOrMessage, result) {
        var err = (errOrMessage instanceof Error) ? errOrMessage : new Error(errOrMessage);
        result = result || {};
        result.error = err;
        result.status = 'error';
        err.result = result;
        return err;
    }
1358755
function ErrorMessage(errorCode, errorMessage, details) {
  Response.call(this, 0x00);

  Object.defineProperties(this, {
    'errorCode': {
      value: errorCode || 0,
      enumerable: true
    },
    'errorMessage': {
      value: errorMessage || '',
      enumerable: true
    },
    'details': {
      value: details || {},
      enumerable: true
    }
  });
}
757282
public static void wrongParameterNumber(String methodName, String className){
		throw new ConversionParameterException(MSG.INSTANCE.message(conversionParameterException,methodName,className));
	}
1299693
function getErrorMess (code, name) {
  let mess
  switch (code) {
    case eCode.siteExceed:
      mess = 'storage space need less than 4k'
      break
    case eCode.lsExceed:
      mess = 'Uncaught DOMException: Failed to execute setItem on Storage: Setting the value of ' +
        name + ' exceeded the quota at ' + window.location.href
  }
  return mess
}
453065
protected String getErrorCodeFrom(final Map<String, Object> model) {
        return model.get(CasViewConstants.MODEL_ATTRIBUTE_NAME_ERROR_CODE).toString();
    }
15556
private String error(){
		Map<String, List<ConversionMethod>> conversions = xml.conversionsLoad();
		
		String methodName = "illegalCode";
		String paramater = "";
		String resource = xml.getXmlPath();
		
		if(!isNull(resource)){
			
			boolean isPath = isPath(resource);
			methodName = !isPath ? "illegalCodeContent":"illegalCode";
			if(!conversions.isEmpty() && !isNull(conversions.get(configClass.getName()))){
				
				// if is a content, the double quotes must be handled
				if(!isPath) resource = doubleQuotesHandling(resource);
				
				paramater = write(",\"",resource,"\"");
			}
		}
		return write("com.googlecode.jmapper.config.Error#",methodName,"(e,\"",methodToGenerate.getOriginalName(),"\",\"",configClass.getSimpleName(),"\"",paramater,");");
	}
1015663
public static String getValidationError(String code, Object... msgValues) {
        if (!_MESSAGES.containsKey(code))
            throw new RuntimeException("Unknown code: " + code);
        return fillMessage(_MESSAGES.get(code), msgValues);
    }
311243
function objectToError (obj) {
  var temp = new Error('')
  var props = Object.keys(obj)

  for (var i = 0; i < props.length; i++) {
    temp[props[i]] = obj[props[i]]
  }

  return temp
}
898262
private static JSONObject genError(Integer code, String message) throws JSONException {
        // TODO: HTTP-Status (404, etc), for now return status line
        return new JSONObject("{error: {code: \"" + code.toString() + "\", message: \"" + message + "\"}}");
    }
138059
function ( obj, errorMsg ) {
            var result = Object.prototype.toString.call( obj ) === '[object Object]';
    
            if ( errorMsg && !result ) {
                warning( errorMsg );
                return false;
            } else {
                return result;
            }
        }
84579
function createErrorsManager() {

    return {
        illegalArgument: illegalArgument,
        propertyNotFound: propertyNotFound,
        propertyOverride: propertyOverride
    };

    function illegalArgument(arg, message) {
        var full = stringify(arg) + ': ' + message;
        throw new Error(formatMessage('Illegal argument', full));
    }

    function propertyNotFound(key, object) {
        if (config.throwPropertyNotFoundError) {
            var message = key + ' in ' + stringify(object);
            throw new Error(formatMessage('Property not found', message));
        }
    }

    function propertyOverride(key, object) {
        if (config.throwOverrideError) {
            var message = key + ' in ' + stringify(object);
            throw new Error(formatMessage('Property already exists',
                message));
        }
    }

    function formatMessage(name, message) {
        if (!isString(message)) {
            message = stringify(message);
        }
        return config.filename + ': ' + name + ': ' + message;
    }
}
678555
public static ObjectName createJavaMailObjectName(String serverName, String mailSessionID, int resourceCounter) {
        Hashtable<String, String> props = new Hashtable<String, String>();
        props.put(TYPE_SERVER, serverName);
        props.put(MAIL_SESSION_ID, mailSessionID);
        props.put(RESOURCE_ID, TYPE_JAVA_MAIL_RESOURCE + "-" + resourceCounter);
        ObjectName objectName;
        try {
            objectName = createObjectName(TYPE_JAVA_MAIL_RESOURCE, NAME_JAVA_MAIL_RESOURCE, props);
        } catch (IllegalArgumentException e) {
            // mailSessionID contains illegal characters
            props.remove(MAIL_SESSION_ID);
            objectName = createObjectName(TYPE_JAVA_MAIL_RESOURCE, NAME_JAVA_MAIL_RESOURCE, props);
        }
        return objectName;
    }