/**
* Exception.
*/
- DeclException0 (ExcInvalidPosition);
+ DeclExceptionMsg (ExcInvalidPosition,
+ "You cannot insert a time step at the specified position.");
protected:
/**
*/
virtual std::size_t memory_consumption () const;
- /**
- * Exception
- */
- DeclException0 (ExcCantComputeTimestep);
-
protected:
/**
* Pointer to the previous time step object in the list.
* to * @p sleep the grid shall be deleted.
*/
const unsigned int sleep_level_to_delete_grid;
-
- /**
- * Exception
- */
- DeclException1 (ExcInvalidParameter,
- int,
- << "The parameter " << arg1 << " has an invalid value.");
};
*/
DeclException1 (ExcInvalidValue,
double,
- << "The following value does not fulfill the requirements: " << arg1);
+ << "The value " << arg1
+ << " for the cell number corridor does not fulfill "
+ "its natural requirements.");
};
*/
DeclException1 (ExcInvalidValue,
double,
- << "The following value does not fulfill the requirements: " << arg1);
+ << "The value " << arg1
+ << " for the cell refinement thresholds does not fulfill "
+ "its natural requirements.");
};
}
/**
* Exception
*/
- DeclException0 (ExcGridNotDeleted);
+ DeclExceptionMsg (ExcGridNotDeleted,
+ "When calling restore_grid(), you must have previously "
+ "deleted the triangulation.");
protected:
double
TimeStepBase::get_backward_timestep () const
{
- Assert (previous_timestep != 0, ExcCantComputeTimestep());
+ Assert (previous_timestep != 0,
+ ExcMessage("The backward time step cannot be computed because "
+ "there is no previous time step."));
return time - previous_timestep->time;
}
double
TimeStepBase::get_forward_timestep () const
{
- Assert (next_timestep != 0, ExcCantComputeTimestep());
+ Assert (next_timestep != 0,
+ ExcMessage("The forward time step cannot be computed because "
+ "there is no next time step."));
return next_timestep->time - time;
}