/**
* Exception.
*/
- DeclException0 (ExcEmptyData);
- /**
- * Exception.
- */
- DeclException0 (ExcInvalidIntervals);
- /**
- * Exception.
- */
- DeclException0 (ExcInvalidData);
+ DeclExceptionMsg (ExcEmptyData,
+ "Your input argument to this function does not appear to "
+ "have any data in it.");
/**
* Exception.
*/
const unsigned int n_intervals,
const IntervalSpacing interval_spacing)
{
- Assert (values.size() > 0, ExcEmptyData());
- Assert (n_intervals > 0, ExcInvalidIntervals());
+ Assert (values.size() > 0,
+ ExcMessage("Your input data needs to contain at least one input vector."));
+ Assert (n_intervals > 0,
+ ExcMessage("The number of intervals needs to be at least one."));
for (unsigned int i=0; i<values.size(); ++i)
Assert (values[i].size() > 0, ExcEmptyData());
Assert (values.size() == y_values_.size(),
void Histogram::write_gnuplot (std::ostream &out) const
{
AssertThrow (out, ExcIO());
- Assert (!intervals.empty(), ExcEmptyData());
+ Assert (!intervals.empty(),
+ ExcMessage("There is nothing to write into the output file. "
+ "Did you forget to call the evaluate() function?"));
// do a simple 2d plot, if only
// one data set is available