Author: luc
Date: Mon Jul 18 08:33:53 2011
New Revision: 1147778

URL: http://svn.apache.org/viewvc?rev=1147778&view=rev
Log:
added forgotten delegating method from context

Modified:
    
commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathUserException.java

Modified: 
commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathUserException.java
URL: 
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathUserException.java?rev=1147778&r1=1147777&r2=1147778&view=diff
==============================================================================
--- 
commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathUserException.java
 (original)
+++ 
commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathUserException.java
 Mon Jul 18 08:33:53 2011
@@ -16,6 +16,8 @@
  */
 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.LocalizedFormats;
 import org.apache.commons.math.exception.util.ExceptionContext;
@@ -94,4 +96,15 @@ public class MathUserException extends R
     public String 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);
+    }
+
 }


Reply via email to