https://www.phpfastcache.com * @author Georges.L (Geolim4) * */ declare(strict_types=1); namespace Phpfastcache\Exceptions; /** * Class PhpfastcacheIOException * @package Phpfastcache\Exceptions * @since v6 */ class PhpfastcacheIOException extends PhpfastcacheCoreException { /** * @inheritdoc */ public function __construct($message = "", $code = 0, $previous = null) { $lastError = error_get_last(); if ($lastError) { $message .= "\n"; $message .= "Additional information provided by error_get_last():\n"; $message .= "{$lastError['message']} in {$lastError['file']} line {$lastError['line']}"; } parent::__construct($message, $code, $previous); } }