diff --git a/phpgwapi/inc/class.egw_exception.inc.php b/phpgwapi/inc/class.egw_exception.inc.php index e4a9aaf6a8..f2deffe0c7 100644 --- a/phpgwapi/inc/class.egw_exception.inc.php +++ b/phpgwapi/inc/class.egw_exception.inc.php @@ -26,7 +26,7 @@ */ class egw_exception extends Exception { - // nothing yet + // nothing fancy yet } /** @@ -39,7 +39,7 @@ class egw_exception_no_permission extends egw_exception * Constructor * * @param string $msg=null message, default "Permission denied!" - * @param int $code=99 numerical code, default 100 + * @param int $code=100 numerical code, default 100 */ function __construct($msg=null,$code=100) { @@ -65,6 +65,7 @@ class egw_exception_no_permission_app extends egw_exception_no_permission } else { + $currentapp = $GLOBALS['egw_info']['flags']['currentapp']; $app = isset($GLOBALS['egw_info']['apps'][$currentapp]['title']) ? $GLOBALS['egw_info']['apps'][$currentapp]['title'] : $msg; @@ -156,4 +157,10 @@ class egw_exception_db extends egw_exception parent::__construct($msg,$code); } -} \ No newline at end of file +} + +/** + * Storing the row violates a unique key constrain + * + */ +class egw_exception_db_not_unique extends egw_exception_db { } \ No newline at end of file