[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 /* 4 * This file is part of the Symfony package. 5 * 6 * (c) Fabien Potencier <fabien@symfony.com> 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12 namespace Symfony\Component\Finder\Exception; 13 14 @trigger_error('The '.__NAMESPACE__.'\AdapterFailureException class is deprecated since Symfony 2.8 and will be removed in 3.0.', E_USER_DEPRECATED); 15 16 use Symfony\Component\Finder\Adapter\AdapterInterface; 17 18 /** 19 * Base exception for all adapter failures. 20 * 21 * @author Jean-François Simon <contact@jfsimon.fr> 22 * 23 * @deprecated since 2.8, to be removed in 3.0. 24 */ 25 class AdapterFailureException extends \RuntimeException implements ExceptionInterface 26 { 27 private $adapter; 28 29 /** 30 * @param AdapterInterface $adapter 31 * @param string|null $message 32 * @param \Exception|null $previous 33 */ 34 public function __construct(AdapterInterface $adapter, $message = null, \Exception $previous = null) 35 { 36 $this->adapter = $adapter; 37 parent::__construct($message ?: 'Search failed with "'.$adapter->getName().'" adapter.', $previous); 38 } 39 40 /** 41 * {@inheritdoc} 42 */ 43 public function getAdapter() 44 { 45 return $this->adapter; 46 } 47 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |