]> git.mxchange.org Git - mailer.git/blobdiff - inc/classes/exceptions/class_FrameworkException.php
Code merged from ship-simu repository
[mailer.git] / inc / classes / exceptions / class_FrameworkException.php
index 267744c2556d2ec651d03e188418f9287a01bb93..c3a2c1a38ff395788fb3eb187d1038ba6b0e217c 100644 (file)
@@ -59,11 +59,20 @@ abstract class FrameworkException extends ReflectionException {
                        );
 
                        // End here
-                       exit;
+                       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')) {
+                       // Log the error
+                       error_log(sprintf("[%s:] %s (%s)",
+                               $this->__toString(),
+                               $message,
+                               $this->getHexCode()
+                       ));
+               } // END - if
        }
 
        /**