Commit 88721261 authored by Jeannie Backer's avatar Jeannie Backer
Browse files

PROG: Improved error message in PolynomialUnivariate class. This change merged from IPCE branch.

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@6457 41f8697f-d340-4b68-9986-7bafba869bb8
parent 0bd33179
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -99,7 +99,10 @@ namespace Isis {
      derivative = 1;
    }
    else {
      IString msg = "Coeff index, " + Isis::IString(coefIndex) + " exceeds degree of polynomial";
      QString msg = "Unable to evaluate the derivative of the univariate polynomial for the given "
                    "coefficient index [" + toString(coefIndex) + "]. "
                    "Index is negative or exceeds degree of polynomial ["
                    + toString(Coefficients()) + "]";
      throw IException(IException::Programmer, msg, _FILEINFO_);
    }
    return derivative;
+3 −4
Original line number Diff line number Diff line
@@ -43,10 +43,9 @@ namespace Isis {
   *
   * @internal
   *
   *  @history 2008-01-11 Tracie Sucharski,  Renamed from Poly1D, add derivative
   *           methods.
   *  @history 2008-02-05 Jeannie Walldren,Renamed from
   *           Polynomial1Variable.
   *   @history 2008-01-11 Tracie Sucharski - Renamed from Poly1D, add derivative methods.
   *   @history 2008-02-05 Jeannie Walldren - Renamed from Polynomial1Variable.
   *   @history 2015-02-20 Jeannie Backer - Improved error messages.
   */

  class PolynomialUnivariate : public Isis::Basis1VariableFunction {