New API (MATH-542).

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1083166 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2011-03-19 12:02:04 +00:00
parent 566075ee5c
commit 3c0afa529e
1 changed files with 6 additions and 16 deletions

View File

@ -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);
}
}