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

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

git-svn-id: http://subversion.wr.usgs.gov/repos/prog/isis3/trunk@6459 41f8697f-d340-4b68-9986-7bafba869bb8
parent 88721261
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1176,8 +1176,10 @@ namespace Isis {
      derivative = 1;
    }
    else {
      Isis::IString msg = "Coeff index, " + Isis::IString(coeffIndex) +
        " exceeds degree of polynomial";
      QString msg = "Unable to evaluate the derivative of the SPICE position fit polynomial for "
                    "the given coefficient index [" + toString(coeffIndex) + "]. "
                    "Index is negative or exceeds degree of polynomial ["
                    + toString(p_degree) + "]";
      throw IException(IException::Programmer, msg, _FILEINFO_);
    }

+3 −2
Original line number Diff line number Diff line
@@ -170,11 +170,12 @@ namespace Isis {
   *                           matrix on radar data.  The bug was in the method VelocityPartial and 
   *                           occurred when the et = baseTime and the coeffIndex was 0.  This caused
   *                           the derivative equation to be 0 * 0 ** -1.  This update fixes issue #1582.
   *   @history 2015-02-20 Jeannie Backer - Improved error messages.
   *   @history 2015-07-21 Kristin Berry - Added additional NaifStatus::CheckErrors() to see if
   *                            any NAIF errors were signaled. References #2248.
   *   @history 2015-08-25 Kristin Berry - Moved check to make sure a polynomial exists to earlier in
   *                           LoadHermiteCache. Was failing due to lack of a polynomial with a
   *                           confusing error message before the check. 
   *  @history 2015-07-21 Kristin Berry - Added additional NaifStatus::CheckErrors() to see if
   *                            any NAIF errors were signaled. References #2248.
   */
  class SpicePosition {
    public: