#ifndef CCDOM_MUTEX_EXCEPTION_H_ #define CCDOM_MUTEX_EXCEPTION_H_ #include #include namespace CCDom { //!Exception thrown when unable to lock a mutex class MutexException { public: //! Constructor //! @param message Exception message //! @param file The source code filename //! @param line The source code line number MutexException(const std::string& message, const std::string& file, int line) throw(); //! Get the exception message //! @return The exception message const char * what() const throw(); //! Virtual destructor virtual ~MutexException() throw(); private: std::string m_message; }; } #endif