TwigException.php 486 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @package Grav\Common\Twig\Exception
  4. *
  5. * @copyright Copyright (c) 2015 - 2023 Trilby Media, LLC. All rights reserved.
  6. * @license MIT License; see LICENSE file for details.
  7. */
  8. namespace Grav\Common\Twig\Exception;
  9. use RuntimeException;
  10. /**
  11. * TwigException gets thrown when you use {% throw code message %} in twig.
  12. *
  13. * This allows Grav to catch 401, 403 and 404 exceptions and display proper error page.
  14. */
  15. class TwigException extends RuntimeException
  16. {
  17. }