yii\db\Exception::__toString PHP Method

__toString() public method

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);
    }