1: <?php
2: /**
3: * CErrorEvent class file.
4: *
5: * @author Qiang Xue <qiang.xue@gmail.com>
6: * @link http://www.yiiframework.com/
7: * @copyright 2008-2013 Yii Software LLC
8: * @license http://www.yiiframework.com/license/
9: */
10:
11: /**
12: * CErrorEvent represents the parameter for the {@link CApplication::onError onError} event.
13: *
14: * @author Qiang Xue <qiang.xue@gmail.com>
15: * @package system.base
16: * @since 1.0
17: */
18: class CErrorEvent extends CEvent
19: {
20: /**
21: * @var string error code
22: */
23: public $code;
24: /**
25: * @var string error message
26: */
27: public $message;
28: /**
29: * @var string error message
30: */
31: public $file;
32: /**
33: * @var string error file
34: */
35: public $line;
36:
37: /**
38: * Constructor.
39: * @param mixed $sender sender of the event
40: * @param string $code error code
41: * @param string $message error message
42: * @param string $file error file
43: * @param integer $line error line
44: */
45: public function __construct($sender,$code,$message,$file,$line)
46: {
47: $this->code=$code;
48: $this->message=$message;
49: $this->file=$file;
50: $this->line=$line;
51: parent::__construct($sender);
52: }
53: }
54: