Author: erans
Date: Sat Mar 19 12:02:04 2011
New Revision: 1083166
URL: http://svn.apache.org/viewvc?rev=1083166&view=rev
Log:
New API (MATH-542).
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/ConvergenceException.java
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/ConvergenceException.java
URL:
http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/ConvergenceException.java?rev=1083166&r1=1083165&r2=1083166&view=diff
==============================================================================
---
commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/ConvergenceException.java
(original)
+++
commons/proper/math/trunk/src/main/java/org/apache/commons/math/exception/ConvergenceException.java
Sat Mar 19 12:02:04 2011
@@ -34,28 +34,18 @@ public class ConvergenceException extend
* Construct the exception.
*/
public ConvergenceException() {
- this(null);
- }
- /**
- * Construct the exception with a specific context.
- *
- * @param specific Specific contexte pattern.
- */
- public ConvergenceException(Localizable specific) {
- this(specific,
- LocalizedFormats.CONVERGENCE_FAILED,
- null);
+ addMessage(LocalizedFormats.CONVERGENCE_FAILED);
}
+
/**
* Construct the exception with a specific context and arguments.
*
- * @param specific Specific contexte pattern.
+ * @param pattern Message pattern providing the specific context of
+ * the error.
* @param args Arguments.
*/
- public ConvergenceException(Localizable specific,
+ public ConvergenceException(Localizable pattern,
Object ... args) {
- super(specific,
- LocalizedFormats.CONVERGENCE_FAILED,
- args);
+ addMessage(pattern, args);
}
}