diff options
author | Martijn Otto <martijn.otto@copernica.com> | 2016-05-20 13:38:56 +0200 |
---|---|---|
committer | Martijn Otto <martijn.otto@copernica.com> | 2016-05-20 13:38:56 +0200 |
commit | 252870d4a85f942107e7b51f9bdf5fae4e88f728 (patch) | |
tree | 0b4d9108c0f75bcbe6a9a8a5ba51bb73eeb6a28a /include/exception.h | |
parent | 8308b984cc61cb2464b9192961abaae4fe750591 (diff) |
Fix exception catching and properly handle casting functions returning something other than a Php::Value
Diffstat (limited to 'include/exception.h')
-rw-r--r-- | include/exception.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/exception.h b/include/exception.h index 55601c2..235529f 100644 --- a/include/exception.h +++ b/include/exception.h @@ -41,12 +41,12 @@ public: * Constructor * @param &string */ - Exception(const std::string &message, int code = 0) : std::exception(), _message(message), _code(code) {} + Exception(std::string message, int code = 0) : std::exception(), _message(std::move(message)), _code(code) {} /** * Destructor */ - virtual ~Exception() throw() {} + virtual ~Exception() = default; /** * Overridden what method |