summaryrefslogtreecommitdiff
path: root/include/exception.h
diff options
context:
space:
mode:
authorJasperVanEck <jaspergkurtz@gmail.com>2013-11-29 15:11:17 +0100
committerJasperVanEck <jaspergkurtz@gmail.com>2013-11-29 15:11:17 +0100
commit6e8778d6dd0f7295cecf047e57679cba595885d1 (patch)
tree5f6789f7736a846d072833550bd01e39ac4f90c3 /include/exception.h
parentc162135cb4c49e2724d5b8028f037c01808b6e84 (diff)
Changes in exceptions, to distinguish between catching and throwing exceptions. README.md of examples is doen for now
Diffstat (limited to 'include/exception.h')
-rw-r--r--include/exception.h8
1 files changed, 7 insertions, 1 deletions
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)
{
}