• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

codeigniter4 / CodeIgniter4 / 12673986434

08 Jan 2025 03:42PM UTC coverage: 84.455% (+0.001%) from 84.454%
12673986434

Pull #9385

github

web-flow
Merge 06e47f0ee into e475fd8fa
Pull Request #9385: refactor: Fix phpstan expr.resultUnused

20699 of 24509 relevant lines covered (84.45%)

190.57 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.0
/system/Cache/Exceptions/CacheException.php
1
<?php
2

3
declare(strict_types=1);
4

5
/**
6
 * This file is part of CodeIgniter 4 framework.
7
 *
8
 * (c) CodeIgniter Foundation <admin@codeigniter.com>
9
 *
10
 * For the full copyright and license information, please view
11
 * the LICENSE file that was distributed with this source code.
12
 */
13

14
namespace CodeIgniter\Cache\Exceptions;
15

16
use CodeIgniter\Exceptions\DebugTraceableTrait;
17
use CodeIgniter\Exceptions\RuntimeException;
18

19
/**
20
 * CacheException
21
 */
22
class CacheException extends RuntimeException
23
{
24
    use DebugTraceableTrait;
25

26
    /**
27
     * Thrown when handler has no permission to write cache.
28
     *
29
     * @return CacheException
30
     */
31
    public static function forUnableToWrite(string $path)
32
    {
33
        return new static(lang('Cache.unableToWrite', [$path]));
1✔
34
    }
35

36
    /**
37
     * Thrown when an unrecognized handler is used.
38
     *
39
     * @return CacheException
40
     */
41
    public static function forInvalidHandlers()
42
    {
43
        return new static(lang('Cache.invalidHandlers'));
1✔
44
    }
45

46
    /**
47
     * Thrown when no backup handler is setup in config.
48
     *
49
     * @return CacheException
50
     */
51
    public static function forNoBackup()
52
    {
53
        return new static(lang('Cache.noBackup'));
×
54
    }
55

56
    /**
57
     * Thrown when specified handler was not found.
58
     *
59
     * @return CacheException
60
     */
61
    public static function forHandlerNotFound()
62
    {
63
        return new static(lang('Cache.handlerNotFound'));
1✔
64
    }
65
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc