Index: branches/5.2.x/core/kernel/kbase.php =================================================================== diff -u -N -r15144 -r15252 --- branches/5.2.x/core/kernel/kbase.php (.../kbase.php) (revision 15144) +++ branches/5.2.x/core/kernel/kbase.php (.../kbase.php) (revision 15252) @@ -1,6 +1,6 @@ template = $template; + $this->params = $params; + } + + /** + * Display exception details in debugger (only useful, when DBG_REDIRECT is enabled) and performs redirect + * + * @return void + * @access public + */ + public function run() + { + $application =& kApplication::Instance(); + + if ( $application->isDebugMode() ) { + $application->Debugger->appendException($this); + } + + $application->Redirect($this->template, $this->params); + } +} + + +/** + * Exception, that is thrown when user don't have permission to perform requested action + */ +class kNoPermissionException extends kRedirectException { + +}