CoreFiles by mySites.guru
RouteNotFoundException.php38 lines, 927 bytes, from Joomla_3.9.13-Stable-Full_Package.zip
Raw History Compare with 3.9.12
md5
c7ec86bd54b8416ada9a3d928d7350cc
sha1
b0f9ccdf6d75a30710d7731c62ec6170f97b268e
sha256
ee63ebe187eb2c42ba3d7e2c2c85d28d82a4c3c2042ef3359c06e05c1bfb19ca
<?php
/**
 * Joomla! Content Management System
 *
 * @copyright  Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Router\Exception;

defined('JPATH_PLATFORM') or die;

/**
 * Exception class defining an error for a missing route
 *
 * @since  3.8.0
 */
class RouteNotFoundException extends \InvalidArgumentException
{
	/**
	 * Constructor
	 *
	 * @param   string      $message   The Exception message to throw.
	 * @param   integer     $code      The Exception code.
	 * @param   \Exception  $previous  The previous exception used for the exception chaining.
	 *
	 * @since   3.8.0
	 */
	public function __construct($message = '', $code = 404, \Exception $previous = null)
	{
		if (empty($message))
		{
			$message = 'URL was not found';
		}

		parent::__construct($message, $code, $previous);
	}
}

The same content is in 31 releases, Joomla 3.9.2-rc to 4.0.0-alpha11. See them all, or every version of this file.