"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "framework/db/Exception.php" between
yii2-2.0.36.tar.gz and yii2-2.0.37.tar.gz

About: Yii 2 is a high-performance component-based PHP framework for developing large-scale Web applications (source).

Exception.php  (yii2-2.0.36):Exception.php  (yii2-2.0.37)
skipping to change at line 28 skipping to change at line 28
/** /**
* @var array the error info provided by a PDO exception. This is the same a s returned * @var array the error info provided by a PDO exception. This is the same a s returned
* by [PDO::errorInfo](https://secure.php.net/manual/en/pdo.errorinfo.php). * by [PDO::errorInfo](https://secure.php.net/manual/en/pdo.errorinfo.php).
*/ */
public $errorInfo = []; public $errorInfo = [];
/** /**
* Constructor. * Constructor.
* @param string $message PDO error message * @param string $message PDO error message
* @param array $errorInfo PDO error info * @param array $errorInfo PDO error info
* @param int $code PDO error code * @param string $code PDO error code
* @param \Exception $previous The previous exception used for the exception chaining. * @param \Exception $previous The previous exception used for the exception chaining.
*/ */
public function __construct($message, $errorInfo = [], $code = 0, \Exception $previous = null) public function __construct($message, $errorInfo = [], $code = '', \Exceptio n $previous = null)
{ {
parent::__construct($message, 0, $previous);
$this->errorInfo = $errorInfo; $this->errorInfo = $errorInfo;
parent::__construct($message, $code, $previous); $this->code = $code;
} }
/** /**
* @return string the user-friendly name of this exception * @return string the user-friendly name of this exception
*/ */
public function getName() public function getName()
{ {
return 'Database Exception'; return 'Database Exception';
} }
 End of changes. 4 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)