Moved the CanteraError constructor to a .cpp file.
This commit is contained in:
parent
e759ea1a4b
commit
6b3912e1dd
2 changed files with 11 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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)+
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue