summaryrefslogtreecommitdiff
path: root/include/exception.h
diff options
context:
space:
mode:
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)
{
}