Added "vararg" parameter to allow "specific" meessage patterns to make use
of additional information. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1040003 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c49cd8fa29
commit
0615bf8dc0
|
@ -46,10 +46,12 @@ public class MaxCountExceededException extends MathIllegalStateException {
|
|||
*
|
||||
* @param specific Specific contexte pattern.
|
||||
* @param max Maximum.
|
||||
* @param args Additional arguments.
|
||||
*/
|
||||
public MaxCountExceededException(Localizable specific,
|
||||
Number max) {
|
||||
super(specific, LocalizedFormats.MAX_COUNT_EXCEEDED, max);
|
||||
Number max,
|
||||
Object ... args) {
|
||||
super(specific, LocalizedFormats.MAX_COUNT_EXCEEDED, max, args);
|
||||
this.max = max;
|
||||
}
|
||||
|
||||
|
|
|
@ -50,24 +50,7 @@ public class NoBracketingException extends MathIllegalArgumentException {
|
|||
double fLo, double fHi) {
|
||||
this(null, lo, hi, fLo, fHi);
|
||||
}
|
||||
/**
|
||||
* Construct the exception with a specific context.
|
||||
*
|
||||
* @param specific Contextual information on what caused the exception.
|
||||
* @param lo Lower end of the interval.
|
||||
* @param hi Higher end of the interval.
|
||||
* @param fLo Value at lower end of the interval.
|
||||
* @param fHi Value at higher end of the interval.
|
||||
*/
|
||||
public NoBracketingException(Localizable specific,
|
||||
double lo, double hi,
|
||||
double fLo, double fHi) {
|
||||
super(specific, LocalizedFormats.SAME_SIGN_AT_ENDPOINTS, lo, hi, fLo, fHi);
|
||||
this.lo = lo;
|
||||
this.hi = hi;
|
||||
this.fLo = fLo;
|
||||
this.fHi = fHi;
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct the exception with a specific context.
|
||||
*
|
||||
|
|
|
@ -160,7 +160,7 @@ public enum LocalizedFormats implements Localizable {
|
|||
NUMBER_OF_TRIALS("number of trials ({0})"),
|
||||
NEGATIVE_ROBUSTNESS_ITERATIONS("the number of robustness iterations must be non-negative, but got {0}"),
|
||||
START_POSITION("start position ({0})"), /* keep */
|
||||
NON_CONVERGENT_CONTINUED_FRACTION("Continued fraction convergents failed to converge for value {0}"),
|
||||
NON_CONVERGENT_CONTINUED_FRACTION("Continued fraction convergents failed to converge (in less than {0} iterations) for value {1}"),
|
||||
NON_POSITIVE_MICROSPHERE_ELEMENTS("number of microsphere elements must be positive, but got {0}"),
|
||||
NON_POSITIVE_POLYNOMIAL_DEGREE("polynomial degree must be positive: degree={0}"),
|
||||
NON_REAL_FINITE_ABSCISSA("all abscissae must be finite real numbers, but {0}-th is {1}"),
|
||||
|
|
|
@ -132,7 +132,7 @@ NEGATIVE_NUMBER_OF_TRIALS = le nombre d''essais ne doit pas \u00eatre n\u00e9gat
|
|||
NUMBER_OF_TRIALS = nombre d''essais ({0})
|
||||
NEGATIVE_ROBUSTNESS_ITERATIONS = le nombre d''it\u00e9rations robuste ne peut \u00eatre n\u00e9gatif, alors qu''il est de {0}
|
||||
START_POSITION = position de d\u00e9part
|
||||
NON_CONVERGENT_CONTINUED_FRACTION = \u00c9chec de convergence de fraction continue pour la valeur {0}
|
||||
NON_CONVERGENT_CONTINUED_FRACTION = \u00c9chec de convergence (en moins de {0} it\u00e9rations) de fraction continue pour la valeur {1}
|
||||
NON_POSITIVE_MICROSPHERE_ELEMENTS = le nombre d''\u00e9l\u00e9ments de la microsph\u00e8re devrait \u00eatre positif, or n = {0}
|
||||
NON_POSITIVE_POLYNOMIAL_DEGREE = le polyn\u00f4me doit \u00eatre de degr\u00e9 positif : degr\u00e9 = {0}
|
||||
NON_REAL_FINITE_ABSCISSA = toutes les abscisses doivent \u00eatre des nombres r\u00e9els finis, mais l''abscisse {0} vaut {1}
|
||||
|
|
Loading…
Reference in New Issue