/** * Exception.h * Implementation of Php Exceptions. * * @author Jasper van Eck * @copyright 2013 Copernica BV */ #include /** * Set up namespace */ namespace Php { /** * Class definition */ class Exception : public std::exception { private: /** * The exception message * @var char* */ std::string _message; public: /** * Constructor * @param &string */ Exception(const std::string &message) : std::exception(), _message(message) { } /** * Destructor */ virtual ~Exception() { } /** * Returns the message of the exception. * @return &string */ std::string &message() throw() { return _message; } }; /** * End of namespace */ }