TwigException.php 464 B

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