diff --git a/include/cantera/base/ctexceptions.h b/include/cantera/base/ctexceptions.h index 38ec6d5b6..5cdb3eb3e 100644 --- a/include/cantera/base/ctexceptions.h +++ b/include/cantera/base/ctexceptions.h @@ -178,6 +178,19 @@ private: size_t m_, mmax_; }; +//! An error indicating that an unimplemented function has been called +class NotImplementedError : public CanteraError +{ +public: + NotImplementedError(const std::string& func) : + CanteraError(func, "Not implemented.") {} + + virtual std::string getClass() const { + return "NotImplementedError"; + } +}; + + //! Provides a line number #define XSTR_TRACE_LINE(s) STR_TRACE_LINE(s)