Changeset 1730


Ignore:
Timestamp:
Jan 16, 2009, 3:45:42 PM (12 years ago)
Author:
Jari Häkkinen
Message:

Improving error output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/regression/GSLInterpolation.cc

    r1729 r1730  
    7272                                     &evaluation_)) {
    7373      std::stringstream ss;
    74       ss << "GSLInterpolation::evaluate error code " << status;
     74      ss << "GSLInterpolation::evaluate for argument " << x << " fails.\n"
     75         << "   Error code " << status;
    7576      throw utility::GSL_error(ss.str());
    7677    }
     
    8485                                           accelerator_, &evaluation_)) {
    8586      std::stringstream ss;
    86       ss << "GSLInterpolation::evaluate_derivative error code " << status;
     87      ss << "GSLInterpolation::evaluate_derivative for argument " << x
     88         << " fails.\n   Error code " << status;
    8789      throw utility::GSL_error(ss.str());
    8890    }
     
    9698                                            accelerator_, &evaluation_)) {
    9799      std::stringstream ss;
    98       ss << "GSLInterpolation::evaluate_derivative2 error code " << status;
     100      ss << "GSLInterpolation::evaluate_derivative2 for argument " << x
     101         << " fails.\n   Error code " << status;
    99102      throw utility::GSL_error(ss.str());
    100103    }
     
    108111                                           accelerator_, &evaluation_)) {
    109112      std::stringstream ss;
    110       ss << "GSLInterpolation::evaluate_integral error code " << status;
     113      ss << "GSLInterpolation::evaluate_integral for arguments a=" << a
     114         << " and b=" << b << " fails.\n   Error code " << status;
    111115      throw utility::GSL_error(ss.str());
    112116    }
Note: See TracChangeset for help on using the changeset viewer.