Returns the string specified by aKey from the errors.properties bundle.
188046
public static String getString(String aKey)
    {
        try
        {
            return getBundle().getString(aKey);
        }
        catch(Exception e)
        {
            return getString("System_StringNotFound",new Object[]{aKey});
        }
    }
701993
@Override
    public String asString(Properties properties) {
        try {
            return super.asString(properties);
        } catch (TransformerException e) {
            throw wrapExceptionAsRuntimeException(e);
        }
    }
1166589
public static String[] getPropertyStrings(Class<?> aClass, String key,
			String aDefault)
	{
		return getSettings().getPropertyStrings(aClass, key,aDefault);
	}
957226
private Object handleGetObjectImpl(String aKey, UResourceBundle requested) {
        Object obj = resolveObject(aKey, requested);
        if (obj == null) {
            UResourceBundle parentBundle = getParent();
            if (parentBundle != null) {
                obj = parentBundle.handleGetObjectImpl(aKey, requested);
            }
            if (obj == null)
                throw new MissingResourceException(
                    "Can't find resource for bundle "
                    + this.getClass().getName() + ", key " + aKey,
                    this.getClass().getName(), aKey);
        }
        return obj;
    }
1129803
private String getErrorCode(String errorShapeName) {
        ErrorTrait errorTrait = getServiceModel().getShapes().get(errorShapeName).getErrorTrait();
        if (isErrorCodeOverridden(errorTrait)) {
            return errorTrait.getErrorCode();
        } else {
            return errorShapeName;
        }
    }
171774
private String getDetails(Throwable error) {
		if (null == error) {
			return "";
		}
		StringBuilder content = new StringBuilder();
		content.append(error.getMessage());
		processStackTrace(error.getStackTrace(), content);
		content.append(getDetails(error.getCause()));
		return content.toString();
	}
703961
public static String stringFromProperties(Properties props) throws IOException {
        ByteArrayOutputStream baos = new ByteArrayOutputStream(2048);
        props.store(baos, null);

        String propsString;
        propsString = URLEncoder.encode(baos.toString("ISO-8859-1"), "ISO-8859-1");

        return propsString;
    }
108975
private static String getStringValue0(String appName, String key) {
        String ret = System.getProperty(key);
        if (StringUtils.isNotEmpty(ret)) {
            return ret;
        }
        rLock.lock();
        try {
            for (ExternalConfigLoader configLoader : CONFIG_LOADERS) {
                ret = appName == null ? configLoader.getValue(key)
                    : configLoader.getValue(appName, key);
                if (StringUtils.isNotEmpty(ret)) {
                    return ret;
                }
            }
        } finally {
            rLock.unlock();
        }
        return getConfig().getProperty(key);
    }
453065
protected String getErrorCodeFrom(final Map<String, Object> model) {
        return model.get(CasViewConstants.MODEL_ATTRIBUTE_NAME_ERROR_CODE).toString();
    }
357176
@Override
	public String[] getPropertyStrings(Class<?> aClass, String key,
			String aDefault)
	{
		String[] defaultArray = {aDefault};
		
		return getPropertyStrings(aClass, key, defaultArray);
	}
434349
public String getSecurityErrorText(int iErrorCode)
    {
        String key = "Error " + Integer.toString(iErrorCode);
        if (iErrorCode == Constants.ACCESS_DENIED)
            key = "Access Denied";
        if (iErrorCode == Constants.LOGIN_REQUIRED)
            key = "Login required";
        if (iErrorCode == Constants.AUTHENTICATION_REQUIRED)
            key = "Authentication required";
        if (iErrorCode == Constants.CREATE_USER_REQUIRED)
            key = "Create user required";
        key = this.getResources(ThinResourceConstants.ERROR_RESOURCE, true).getString(key);
        return key;
    }
480393
protected String error2message(IApiError err) {
		if (err != null) {
			StringBuilder sb = new StringBuilder(err.toString());
			if (Str.STR.notNullOrEmpty(err.param())) {
				sb.append(" (").append(err.param()).append(")");
			}
			return sb.toString();
		}
		return new GenericApiError().toString();
	}
1060681
public static String getStringProperty(String name) {
        try {
            if (resourceBundle == null) {
                resourceBundle = ResourceBundle.getBundle(ERRORCODE_FILE,
                        Locale.getDefault(),
                        ErrorCodeConfig.class.getClassLoader());
            }
            String tagValue = resourceBundle.getString(name);
            if (tagValue == null || tagValue.isEmpty()) {
                return DEFAULT_STRING_VALUE;
            }
            return tagValue.trim();
        } catch (Exception ex) {
            LOGGER.error("Get exception in ErrorCodeConfig.getStringProperty, propertyName=" + name + ".");
            return DEFAULT_STRING_VALUE;
        }
    }
789416
function errorJSON (err) {
  var res = {}
  Object.getOwnPropertyNames(err).forEach(function (key) {
    res[key] = err[key]
  }, err)
  return res
}
605692
function(err) {
    var errToStr = function(err) {
        var obj = {};
        Object.getOwnPropertyNames(err)
            .forEach(function(key) { obj[key] = err[key]; });
        return JSON.stringify(obj, null, 2);
    };

    var result = errToStr(err);
    if (typeof result === 'string') {
        result = result.replace(/\\n/g, '\n');
    }
    return result;
}
640832
public String get( String key ) {

		String result;
		try {
			result = this.bundle.getString( key );

		} catch( MissingResourceException e ) {
			result = OOPS + key + '!';
		}

		return result;
	}
824441
public static String get(Locale locale, String key, Object... args) {
        return get(BUNDLE_NAME, getLocale(locale), key, args);
    }