/** * @file include/ActivMiddleware/ActivBase/StringException.h * * @brief Header file for the StringException class. */ #if (!defined ACTIV_BASE_STRING_MESSAGE_EXCEPTION_H) #define ACTIV_BASE_STRING_MESSAGE_EXCEPTION_H #include "ActivMiddleware/ActivBase/External.h" #include ACTIV_BOOST_INCLUDE(exception/all.hpp) //! Activ namespace. namespace Activ { /** * @brief String exception class. */ class StringException : public virtual Boost::exception, public virtual std::exception { public: /** * @brief Constructor. * * @param pMessage string to log. */ ACTIV_BASE_API StringException(const char * const pMessage); /** * @brief Constructor. * * @param message string to log. */ ACTIV_BASE_API StringException(const String &message); /** * @brief Constructor. * * @param message string to log. */ ACTIV_BASE_API StringException(const BoostFormat &message); /** * @brief Destructor. */ ACTIV_BASE_API ~StringException() throw(); // std::exception overrides. ACTIV_BASE_API virtual const char *what() const throw() ACTIV_OVERRIDE; private: const String m_message; }; } // namespace Activ #endif // (!defined ACTIV_BASE_STRING_MESSAGE_EXCEPTION_H)