/**
* An output function did not receive any patches for writing.
*/
- DeclException0 (ExcNoPatches);
+ DeclExceptionMsg (ExcNoPatches,
+ "You are trying to write graphical data into a file, but "
+ "no data is available in the intermediate format that "
+ "the DataOutBase functions require. Did you forget to "
+ "call a function such as DataOut::build_patches()?");
/**
* Exception
*/
- DeclException0 (ExcTecplotAPIError);
+ DeclExceptionMsg (ExcTecplotAPIError,
+ "The error code of one of the Tecplot functions was "
+ "not zero as expected.");
/**
* Exception
*/
*/
void merge (const DataOutReader<dim,spacedim> &other);
- /**
- * Exception
- */
- DeclException0 (ExcNoPatches);
/**
* Exception
*/
const std::vector<Patch> source_patches = source.get_patches ();
- Assert (patches.size () != 0, ExcNoPatches ());
- Assert (source_patches.size () != 0, ExcNoPatches ());
+ Assert (patches.size () != 0, DataOutBase::ExcNoPatches ());
+ Assert (source_patches.size () != 0, DataOutBase::ExcNoPatches ());
// check equality of component
// names
Assert (get_dataset_names() == source.get_dataset_names(),