Moved the CanteraError constructor to a .cpp file.

This commit is contained in:
Harry Moffat 2010-07-16 21:25:27 +00:00
parent e759ea1a4b
commit 6b3912e1dd
2 changed files with 11 additions and 2 deletions

View file

@ -90,14 +90,14 @@ namespace Cantera {
CanteraError(std::string procedure, std::string msg);
//! Destructor for base class does nothing
virtual ~CanteraError() throw() {}
virtual ~CanteraError() throw();
protected:
//! Empty base constructor is made protected so that it may be used only by
//! inherited classes.
/*!
* We want to discourage throwing an error containing no information.
*/
CanteraError() {}
CanteraError();
};
//! Array size error.

View file

@ -1509,6 +1509,15 @@ protected:
CanteraError::CanteraError(std::string proc, std::string msg) {
app()->addError(proc, msg);
}
CanteraError::CanteraError()
{
}
CanteraError::~CanteraError() throw()
{
}
ArraySizeError::ArraySizeError(std::string proc, int sz, int reqd) :
CanteraError(proc, "Array size ("+int2str(sz)+