From 3c0afa529e52218500f04c067ec6105b6c074b1b Mon Sep 17 00:00:00 2001 From: Gilles Sadowski Date: Sat, 19 Mar 2011 12:02:04 +0000 Subject: [PATCH] New API (MATH-542). git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083166 13f79535-47bb-0310-9956-ffa450edef68 --- .../math/exception/ConvergenceException.java | 22 +++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/src/main/java/org/apache/commons/math/exception/ConvergenceException.java b/src/main/java/org/apache/commons/math/exception/ConvergenceException.java index 5ea585691..f165a4464 100644 --- a/src/main/java/org/apache/commons/math/exception/ConvergenceException.java +++ b/src/main/java/org/apache/commons/math/exception/ConvergenceException.java @@ -34,28 +34,18 @@ public class ConvergenceException extends MathIllegalStateException { * 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); } }