[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * Joomla! Content Management System 5 * 6 * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 */ 9 10 namespace Joomla\CMS\Router\Exception; 11 12 // phpcs:disable PSR1.Files.SideEffects 13 \defined('JPATH_PLATFORM') or die; 14 // phpcs:enable PSR1.Files.SideEffects 15 16 /** 17 * Exception class defining an error for a missing route 18 * 19 * @since 3.8.0 20 */ 21 class RouteNotFoundException extends \InvalidArgumentException 22 { 23 /** 24 * Constructor 25 * 26 * @param string $message The Exception message to throw. 27 * @param integer $code The Exception code. 28 * @param \Exception $previous The previous exception used for the exception chaining. 29 * 30 * @since 3.8.0 31 */ 32 public function __construct($message = '', $code = 404, \Exception $previous = null) 33 { 34 if (empty($message)) { 35 $message = 'URL was not found'; 36 } 37 38 parent::__construct($message, $code, $previous); 39 } 40 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |