From 6e8778d6dd0f7295cecf047e57679cba595885d1 Mon Sep 17 00:00:00 2001 From: JasperVanEck Date: Fri, 29 Nov 2013 15:11:17 +0100 Subject: Changes in exceptions, to distinguish between catching and throwing exceptions. README.md of examples is doen for now --- include/exception.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/exception.h b/include/exception.h index f787582..ccb6b08 100644 --- a/include/exception.h +++ b/include/exception.h @@ -24,12 +24,18 @@ private: */ std::string _message; + /** + * The PHP exception code + * @var int + */ + int _code; + public: /** * Constructor * @param &string */ - Exception(const std::string &message) : std::exception(), _message(message) + Exception(const std::string &message, int code = 0) : std::exception(), _message(message), _code(code) { } -- cgit v1.2.3