public void setDefaultLocale(Locale locale) { defaultLocale = locale; resourceLoader.setDefaultLocale(defaultLocale); }
/** * Sets the message property to a localized string based on error number, variant and * target locale. The passed arguments are substituted into the parameterized error * message string. * * @param number The error number for this exception instance. * @param variant The variant of the error message for this instance. * @param locale The target locale for error message lookup. * @param arguments The arguments to substitute into the error message. */ public void setMessage(int number, String variant, Locale locale, Object[] arguments) { setNumber(number); ResourceLoader resources = getResourceLoader(); setMessage(resources.getString(generateFullKey(number, variant), locale, arguments)); }
/** * Sets the message property to a localized string based on error number, variant and * target locale. The passed arguments are substituted into the parameterized error * message string. * * @param number The error number for this exception instance. * @param variant The variant of the error message for this instance. * @param locale The target locale for error message lookup. * @param arguments The arguments to substitute into the error message. */ public void setMessage(int number, String variant, Locale locale, Object[] arguments) { setNumber(number); ResourceLoader resources = getResourceLoader(); setMessage(resources.getString(generateFullKey(number, variant), locale, arguments)); }
/** * Sets the message property to a localized string based on error number, variant and * target locale. The passed arguments are substituted into the parameterized error * message string. * * @param number The error number for this exception instance. * @param variant The variant of the error message for this instance. * @param locale The target locale for error message lookup. * @param arguments The arguments to substitute into the error message. */ public void setMessage(int number, String variant, Locale locale, Object[] arguments) { setNumber(number); ResourceLoader resources = getResourceLoader(); setMessage(resources.getString(generateFullKey(number, variant), locale, arguments)); }
public void setDefaultLocale(Locale locale) { defaultLocale = locale; resourceLoader.setDefaultLocale(defaultLocale); }
/** * Sets the details property to a localized string based on error number, variant, * and target locale. The passed arguments are substituted into the parameterized error * details string. * * @param number The error number to lookup a localized details string for. * @param variant The variant of the details string to lookup. * @param locale The target locale for the lookup. * @param arguments The arguments to substitute into the details string. */ public void setDetails(int number, String variant, Locale locale, Object[] arguments) { setNumber(number); ResourceLoader resources = getResourceLoader(); setDetails(resources.getString(generateDetailsKey(number, variant), locale, arguments)); }
public void setDefaultLocale(Locale locale) { defaultLocale = locale; resourceLoader.setDefaultLocale(defaultLocale); }
/** * Sets the details property to a localized string based on error number, variant, * and target locale. The passed arguments are substituted into the parameterized error * details string. * * @param number The error number to lookup a localized details string for. * @param variant The variant of the details string to lookup. * @param locale The target locale for the lookup. * @param arguments The arguments to substitute into the details string. */ public void setDetails(int number, String variant, Locale locale, Object[] arguments) { setNumber(number); ResourceLoader resources = getResourceLoader(); setDetails(resources.getString(generateDetailsKey(number, variant), locale, arguments)); }
/** * Sets the details property to a localized string based on error number, variant, * and target locale. The passed arguments are substituted into the parameterized error * details string. * * @param number The error number to lookup a localized details string for. * @param variant The variant of the details string to lookup. * @param locale The target locale for the lookup. * @param arguments The arguments to substitute into the details string. */ public void setDetails(int number, String variant, Locale locale, Object[] arguments) { setNumber(number); ResourceLoader resources = getResourceLoader(); setDetails(resources.getString(generateDetailsKey(number, variant), locale, arguments)); }