Development

/branches/1.0/lib/exception/sfStopException.class.php

You must first sign up to be able to contribute.

root/branches/1.0/lib/exception/sfStopException.class.php

Revision 3243, 1.0 kB (checked in by fabien, 8 years ago)

updated lib/exception directory phpdoc

  • Property svn:mime-type set to text/x-php
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Rev Date
Line 
1 <?php
2
3 /*
4  * This file is part of the symfony package.
5  * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
6  *
7  * For the full copyright and license information, please view the LICENSE
8  * file that was distributed with this source code.
9  */
10
11 /**
12  * sfStopException is thrown when you want to stop action flow.
13  *
14  * @package    symfony
15  * @subpackage exception
16  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17  * @version    SVN: $Id$
18  */
19 class sfStopException extends sfException
20 {
21   /**
22    * Class constructor.
23    *
24    * @param string The error message
25    * @param int    The error code
26    */
27   public function __construct($message = null, $code = 0)
28   {
29     $this->setName('sfStopException');
30
31     // disable xdebug to avoid backtrace in error log
32     if (function_exists('xdebug_disable'))
33     {
34       xdebug_disable();
35     }
36
37     parent::__construct($message, $code);
38   }
39
40   /**
41    * Stops the current action.
42    */
43   public function printStackTrace($exception = null)
44   {
45   }
46 }
47
Note: See TracBrowser for help on using the browser.