Class yii\redis\SocketException
| Inheritance | yii\ |
|---|---|
| Available since version | 2.0.7 |
| Source Code | https://github.com/yiisoft/yii2-redis/blob/master/SocketException.php |
SocketException indicates a socket connection failure in yii\
Public Properties
| Property | Type | Description | Defined By |
|---|---|---|---|
| $errorInfo | array | The error info provided by a PDO exception. | yii\ |
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | yii\ |
|
| __toString() | yii\ |
|
| getName() | yii\ |
Method Details
| public __construct( mixed $message = null, mixed $code = '', Exception|null $previous = null ): mixed | ||
| $message | mixed | |
| $code | mixed | |
| $previous | Exception|null | |
public function __construct($message = null, $code = '', ?\Exception $previous = null)
{
if (!YII_DEBUG) {
$message = preg_replace('~AUTH \S+ \S+~', 'AUTH *** ***', $message);
}
parent::__construct($message, $code, $previous);
}
Defined in:
yii\
| public __toString( ): string | ||
| return | string |
Readable representation of exception |
|---|---|---|
public function __toString()
{
return parent::__toString() . PHP_EOL
. 'Additional Information:' . PHP_EOL . print_r($this->errorInfo, true);
}