]> git.mxchange.org Git - core.git/blobdiff - inc/classes/exceptions/class_FrameworkException.php
Missing config entries added, constant LOG_EXCEPTIONS needed to log all exceptions
[core.git] / inc / classes / exceptions / class_FrameworkException.php
index b3d3f42b04bb0d851df87aad67002664fe818758..50c86ada684b3306e080021bcbc09fd333ab6b3f 100644 (file)
@@ -42,6 +42,9 @@ abstract class FrameworkException extends ReflectionException {
         * @return      void
         */
        public function __construct ($message, $code = 0) {
+               // Make sure everything is assigned properly
+               parent::__construct($message, $code);
+
                // Extract backtrace
                $this->saveBackTrace();
 
@@ -61,11 +64,9 @@ abstract class FrameworkException extends ReflectionException {
                        // End here
                        exit();
                } // END - if
-               // Make sure everything is assigned properly
-               parent::__construct($message, $code);
 
-               // Log it away if DEBUG_ALL is set
-               if (defined('DEBUG_ALL')) {
+               // Should we log exceptions? (bad implementation)
+               if (defined('LOG_EXCEPTIONS')) {
                        // Log the error
                        error_log(sprintf("[%s:] %s (%s)",
                                $this->__toString(),