A performed action now always requires an action class
[shipsimu.git] / inc / classes / exceptions / class_FrameworkException.php
index 267744c2556d2ec651d03e188418f9287a01bb93..31a7ba642df74aa2b33ab1d0e267c822488efb5f 100644 (file)
@@ -61,9 +61,18 @@ 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')) {
+                       // Log the error
+                       error_log(sprintf("[%s:] %s (%s)",
+                               $this->__toString(),
+                               $message,
+                               $this->getHexCode()
+                       ));
+               } // END - if
        }
 
        /**