1 | <?php namespace CMPayments\Cache\Exceptions; |
||
11 | class CacheException extends BaseException |
||
12 | { |
||
13 | const ERROR_CACHE_FILENAME_NOT_SET = 1; |
||
14 | const ERROR_CACHE_DIRECTORY_NOT_WRITABLE = 2; |
||
15 | |||
16 | protected $messages = [ |
||
17 | self::ERROR_CACHE_FILENAME_NOT_SET => 'The cache filename option \'%s\' is not set', |
||
18 | self::ERROR_CACHE_DIRECTORY_NOT_WRITABLE => 'The cache directory \'%s\' is not writable' |
||
19 | ]; |
||
20 | |||
21 | /** |
||
22 | * prepend class name to clarify error origin |
||
23 | * |
||
24 | * @param int $code |
||
25 | * @param null $default |
||
26 | * @param string $msgArray |
||
27 | * |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getItemFromVariableArray($code, $default = null, $msgArray = 'messages') |
||
34 | } |