WriteOperationFailedException.php 631 B

12345678910111213141516171819202122
  1. <?php declare(strict_types=1);
  2. /*
  3. * This file is part of phpunit/php-code-coverage.
  4. *
  5. * (c) Sebastian Bergmann <sebastian@phpunit.de>
  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 SebastianBergmann\CodeCoverage\Driver;
  11. use function sprintf;
  12. use RuntimeException;
  13. use SebastianBergmann\CodeCoverage\Exception;
  14. final class WriteOperationFailedException extends RuntimeException implements Exception
  15. {
  16. public function __construct(string $path)
  17. {
  18. parent::__construct(sprintf('Cannot write to "%s"', $path));
  19. }
  20. }