1 | <?php |
||
16 | class Exception extends \yii\base\Exception |
||
17 | { |
||
18 | /** |
||
19 | * @var array the error info provided by a PDO exception. This is the same as returned |
||
20 | * by [PDO::errorInfo](http://www.php.net/manual/en/pdo.errorinfo.php). |
||
21 | */ |
||
22 | public $errorInfo = []; |
||
23 | |||
24 | |||
25 | /** |
||
26 | * Constructor. |
||
27 | * @param string $message PDO error message |
||
28 | * @param array $errorInfo PDO error info |
||
29 | * @param int $code PDO error code |
||
30 | * @param \Exception $previous The previous exception used for the exception chaining. |
||
31 | */ |
||
32 | 33 | public function __construct($message, $errorInfo = [], $code = 0, \Exception $previous = null) |
|
37 | |||
38 | /** |
||
39 | * @return string the user-friendly name of this exception |
||
40 | */ |
||
41 | public function getName() |
||
45 | |||
46 | /** |
||
47 | * @return string readable representation of exception |
||
48 | */ |
||
49 | public function __toString() |
||
54 | } |
||
55 |