fix: replace \Exception with RuntimeException

This commit is contained in:
kenjis 2024-01-27 22:41:02 +09:00
parent 82eaa32d65
commit 3fa8a26177
No known key found for this signature in database
GPG Key ID: BD254878922AF198

View File

@ -13,12 +13,12 @@ declare(strict_types=1);
namespace CodeIgniter\Cache;
use CodeIgniter\Exceptions\RuntimeException;
use CodeIgniter\HTTP\CLIRequest;
use CodeIgniter\HTTP\Header;
use CodeIgniter\HTTP\IncomingRequest;
use CodeIgniter\HTTP\ResponseInterface;
use Config\Cache as CacheConfig;
use Exception;
/**
* Web Page Caching
@ -131,7 +131,7 @@ final class ResponseCache
|| ! isset($cachedResponse['output'])
|| ! isset($cachedResponse['headers'])
) {
throw new Exception('Error unserializing page cache');
throw new RuntimeException('Error unserializing page cache');
}
$headers = $cachedResponse['headers'];