1 16 package org.apache.commons.math; 17 18 26 public class FunctionEvaluationException extends MathException { 27 28 29 static final long serialVersionUID = -317289374378977972L; 30 31 32 private double argument = Double.NaN; 33 34 41 public FunctionEvaluationException(double argument) { 42 this(argument, "Evaluation failed for argument = " + argument); 43 } 44 45 54 public FunctionEvaluationException(double argument, String message) { 55 this(argument, message, null); 56 } 57 58 67 public FunctionEvaluationException(double argument, String message, 68 Throwable cause) { 69 super(message + " Evaluation failed for argument=" + argument, cause); 70 this.argument = argument; 71 } 72 73 78 public double getArgument() { 79 return this.argument; 80 } 81 } 82 | Popular Tags |