1 | <?php |
||
12 | class StorageFailure extends \RuntimeException implements Exception |
||
13 | { |
||
14 | /** |
||
15 | * Instantiate a new StorageFailure exception for a particular adapter action. |
||
16 | * |
||
17 | * @param string $action The adapter action (e.g read, write, listKeys, ...) that throw the exception. |
||
18 | * @param array $args Arguments used by the action (like the read key). |
||
19 | * @param \Exception|null $previous Previous exception, if any was thrown (like exception from AWS sdk). |
||
20 | * |
||
21 | * @return StorageFailure |
||
22 | */ |
||
23 | public static function unexpectedFailure($action, array $args, \Exception $previous = null) |
||
37 | } |
||
38 |