diff options
Diffstat (limited to 'include/fatalerror.h')
-rw-r--r-- | include/fatalerror.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/include/fatalerror.h b/include/fatalerror.h index b178f25..bda717a 100644 --- a/include/fatalerror.h +++ b/include/fatalerror.h @@ -1,18 +1,18 @@ /** * FatalError.h - * - * + * + * * Normally, fatal errors are reported with a call to zend_error(). - * + * * However, this will trigger a longjmp(), which will cause objects * constructed in the extension not to be destructed. We use therefore * this FatalError class, which is a normally exception that _does_ * cause objects to be destructed. - * + * * When it is caught, right before control is handed back to the Zend * engine, it will turn the exception into a zend_error() call and * thus a longjmp. - * + * * @author Emiel Bruijntjes <emiel.bruijntjes@copernica.com> * @copyright 2014 Copernica BV */ @@ -25,7 +25,7 @@ namespace Php { /** * Class definition */ -class FatalError : public Exception +class PHPCPP_EXPORT FatalError : public Exception { public: /** @@ -33,11 +33,11 @@ public: * @param message */ FatalError(const std::string &message) : Exception(message) {} - + /** * Destructor */ - virtual ~FatalError() throw() + virtual ~FatalError() throw() { } @@ -51,16 +51,15 @@ public: // as exception, but it should live on as zend_error() in stead return false; } - + /** * Report this error as a fatal error * @return bool */ virtual bool report() const override; }; - + /** * End of namespace */ } - |