InvalidDriverException.php 593 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /*
  3. * This file is part of the Sylius package.
  4. *
  5. * (c) Paweł Jędrzejewski
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Sylius\Component\Resource\Exception\Driver;
  11. /**
  12. * @author Arnaud Langlade <aRn0D.dev@gmail.com>
  13. */
  14. class InvalidDriverException extends \Exception
  15. {
  16. public function __construct($driver, $className)
  17. {
  18. parent::__construct(sprintf(
  19. 'Driver "%s" is not supported by %s.',
  20. $driver,
  21. $className
  22. ));
  23. }
  24. }