| [ Index ] |
PHP Cross Reference of Limb3 |
[Summary view] [Print] [Text view]
1 <?php 2 /* 3 * Limb PHP Framework 4 * 5 * @link http://limb-project.com 6 * @copyright Copyright © 2004-2007 BIT(http://bit-creative.com) 7 * @license LGPL http://www.gnu.org/copyleft/lesser.html 8 */ 9 10 /** 11 * class WactException. 12 * 13 * @package wact 14 * @version $Id: error.inc.php 5945 2007-06-06 08:31:43Z pachanga $ 15 */ 16 class WactException extends Exception 17 { 18 protected $message; 19 protected $params; 20 21 function __construct($message, $params = NULL) 22 { 23 $this->message = $message; 24 if(!is_array($params)) 25 $this->params = array(); 26 else 27 $this->params = $params; 28 29 $error_message = 'WACT exception: ' . $message . "\n. Params : " . var_export($this->params, true); 30 31 parent :: __construct($error_message); 32 } 33 34 function getParams() 35 { 36 return $this->params; 37 } 38 39 function getParam($name) 40 { 41 if(isset($this->params[$name])) 42 return $this->params[$name]; 43 } 44 } 45 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Tue Dec 2 03:54:09 2008 | Cross-referenced by PHPXref 0.7 |