Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1669)
+++ branches/2.8.x/CHANGELOG	(revision 1670)
@@ -11,7 +11,9 @@
 ! = Update/Change
 ===============================================================================
 
-17 Apr-2012 Build 1669 Dietmar Woellbrink (Luisehahne)
+17 Apr-2012 Build 1670 Werner v.d.Decken(DarkViper)
++ added new global exceptionhandler (class AppException)
+17 Apr-2012 Build 1669 Werner v.d.Decken(DarkViper)
 # little fixes in /admin/addons/reload.php
 17 Apr-2012 Build 1668 Dietmar Woellbrink (Luisehahne)
 ! settigs.php add fields dev_infos and page_icon_dir
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1669)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1670)
@@ -51,5 +51,5 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.3');
-if(!defined('REVISION')) define('REVISION', '1669');
+if(!defined('REVISION')) define('REVISION', '1670');
 if(!defined('SP')) define('SP', '');
Index: branches/2.8.x/wb/framework/globalExceptionHandler.php
===================================================================
--- branches/2.8.x/wb/framework/globalExceptionHandler.php	(revision 1669)
+++ branches/2.8.x/wb/framework/globalExceptionHandler.php	(revision 1670)
@@ -16,8 +16,29 @@
 /**
  * define several default exceptions directly to prevent from extra loading requests
  */
-
 /**
+ * 
+ */
+	class AppException extends Exception{
+		public function __toString() {
+			$file = str_replace(dirname(dirname(__FILE__)), '', $this->getFile());
+			if(DEBUG) {
+				$trace = $this->getTrace();
+				$result = 'Exception: "'.$this->getMessage().'" @ ';
+				if($trace[0]['class'] != '') {
+				  $result .= $trace[0]['class'].'->';
+				}
+				$result .= $trace[0]['function'].'(); in'.$file.'<br />'."\n";
+				if(mysql_errno()) {
+					$result .= mysql_errno().': '.mysql_error().'<br />'."\n";
+				}
+			}else {
+				$result = 'Exception: "'.$this->getMessage().'" in ['.$file.']<br />'."\n";
+			}
+			return $result;
+		}
+	}
+/**
  * define Exception to show error after accessing a forbidden file
  */
 	class IllegalFileException extends LogicException {
