*
* @author Roland Haeder <webmaster@ship-simu.org>
* @version 0.0.0
- * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009 Core Developer Team
+ * @copyright Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Core Developer Team
* @license GNU GPL 3.0 or any newer version
* @link http://www.ship-simu.org
*
* @return void
*/
public function __construct ($message, $code = 0) {
+ // Make sure everything is assigned properly
+ parent::__construct($message, $code);
+
// Extract backtrace
$this->saveBackTrace();
// 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(),