diff options
author | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-12-07 13:12:25 -0800 |
---|---|---|
committer | Emiel Bruijntjes <emiel.bruijntjes@copernica.com> | 2013-12-07 13:12:25 -0800 |
commit | 80c8a16fb145f7ed4867d31fad3c22318a1ce708 (patch) | |
tree | f7605cdb86d653efaac761363ed596dd6b2e0459 /include/exception.h | |
parent | 964d6274b0eba38df43d77b87c44bd728d2f0fb5 (diff) |
replaces tabs in source code with regular spaces, added example for working with global variables
Diffstat (limited to 'include/exception.h')
-rw-r--r-- | include/exception.h | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/include/exception.h b/include/exception.h index ccb6b08..061c106 100644 --- a/include/exception.h +++ b/include/exception.h @@ -1,9 +1,9 @@ /** - * Exception.h - * Implementation of Php Exceptions. + * Exception.h + * Implementation of Php Exceptions. * - * @author Jasper van Eck <jasper.vaneck@copernica.com> - * @copyright 2013 Copernica BV + * @author Jasper van Eck <jasper.vaneck@copernica.com> + * @copyright 2013 Copernica BV */ #include <exception> @@ -18,42 +18,42 @@ namespace Php { class Exception : public std::exception { private: - /** - * The exception message - * @var char* - */ - std::string _message; - - /** - * The PHP exception code - * @var int - */ - int _code; - + /** + * The exception message + * @var char* + */ + std::string _message; + + /** + * The PHP exception code + * @var int + */ + int _code; + public: - /** - * Constructor - * @param &string - */ - Exception(const std::string &message, int code = 0) : std::exception(), _message(message), _code(code) - { - } - - /** - * Destructor - */ - virtual ~Exception() - { - } - - /** - * Returns the message of the exception. - * @return &string - */ - std::string &message() throw() - { - return _message; - } + /** + * Constructor + * @param &string + */ + Exception(const std::string &message, int code = 0) : std::exception(), _message(message), _code(code) + { + } + + /** + * Destructor + */ + virtual ~Exception() + { + } + + /** + * Returns the message of the exception. + * @return &string + */ + std::string &message() throw() + { + return _message; + } }; /** |