-
-
Notifications
You must be signed in to change notification settings - Fork 447
Expand file tree
/
Copy pathPhpfastcacheIOException.php
More file actions
37 lines (33 loc) · 984 Bytes
/
PhpfastcacheIOException.php
File metadata and controls
37 lines (33 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
*
* This file is part of Phpfastcache.
*
* @license MIT License (MIT)
*
* For full copyright and license information, please see the docs/CREDITS.txt and LICENCE files.
*
* @author Georges.L (Geolim4) <contact@geolim4.com>
* @author Contributors https://github.com/PHPSocialNetwork/phpfastcache/graphs/contributors
*/
declare(strict_types=1);
namespace Phpfastcache\Exceptions;
/**
* @since v6
*/
class PhpfastcacheIOException extends PhpfastcacheCoreException
{
/**
* @inheritdoc
*/
public function __construct(string $message = "", int $code = 0, ?\Throwable $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);
}
}