InstallException.php 616 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * @package Grav\Installer
  4. *
  5. * @copyright Copyright (c) 2015 - 2022 Trilby Media, LLC. All rights reserved.
  6. * @license MIT License; see LICENSE file for details.
  7. */
  8. namespace Grav\Installer;
  9. use Throwable;
  10. /**
  11. * Class InstallException
  12. * @package Grav\Installer
  13. */
  14. class InstallException extends \RuntimeException
  15. {
  16. /**
  17. * InstallException constructor.
  18. * @param string $message
  19. * @param Throwable $previous
  20. */
  21. public function __construct(string $message, Throwable $previous)
  22. {
  23. parent::__construct($message, $previous->getCode(), $previous);
  24. }
  25. }