You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ps...@apache.org on 2011/10/03 04:54:08 UTC
svn commit: r1178287 -
/commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/MathInternalError.java
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);
+ }
}