commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1178287 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathInternalError.java
Date Mon, 03 Oct 2011 02:54:08 GMT
Author: psteitz
Date: Mon Oct  3 02:54:07 2011
New Revision: 1178287

URL: http://svn.apache.org/viewvc?rev=1178287&view=rev
Log:
Added constructor taking a localized message.

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

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathInternalError.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathInternalError.java?rev=1178287&r1=1178286&r2=1178287&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathInternalError.java
(original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathInternalError.java
Mon Oct  3 02:54:07 2011
@@ -16,6 +16,7 @@
  */
 package org.apache.commons.math.exception;
 
+import org.apache.commons.math.exception.util.Localizable;
 import org.apache.commons.math.exception.util.LocalizedFormats;
 
 /**
@@ -44,4 +45,14 @@ public class MathInternalError extends M
     public MathInternalError(final Throwable cause) {
         super(cause, LocalizedFormats.INTERNAL_ERROR, REPORT_URL);
     }
+    
+    /**
+     * Constructor accepting a localized message.
+     *
+     * @param pattern Message pattern explaining the cause of the error.
+     * @param args Arguments.
+     */
+    public MathInternalError(Localizable pattern, Object ... args) {
+        super(pattern, args);
+    }
 }



Mime
View raw message