mirror of
https://github.com/apache/commons-math.git
synced 2025-02-08 19:15:18 +00:00
added forgotten delegating method from context
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1147778 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1e649ff9f3
commit
c8027556c1
@ -16,6 +16,8 @@
|
|||||||
*/
|
*/
|
||||||
package org.apache.commons.math.exception;
|
package org.apache.commons.math.exception;
|
||||||
|
|
||||||
|
import java.util.Locale;
|
||||||
|
|
||||||
import org.apache.commons.math.exception.util.Localizable;
|
import org.apache.commons.math.exception.util.Localizable;
|
||||||
import org.apache.commons.math.exception.util.LocalizedFormats;
|
import org.apache.commons.math.exception.util.LocalizedFormats;
|
||||||
import org.apache.commons.math.exception.util.ExceptionContext;
|
import org.apache.commons.math.exception.util.ExceptionContext;
|
||||||
@ -94,4 +96,15 @@ public class MathUserException extends RuntimeException
|
|||||||
public String getLocalizedMessage() {
|
public String getLocalizedMessage() {
|
||||||
return context.getLocalizedMessage();
|
return context.getLocalizedMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the message in a specified locale.
|
||||||
|
*
|
||||||
|
* @param locale Locale in which the message should be translated
|
||||||
|
* @return localized message
|
||||||
|
*/
|
||||||
|
public String getMessage(final Locale locale) {
|
||||||
|
return context.getMessage(locale);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user