Newer
Older
framework / system / Router / Exceptions / RedirectException.php
@Jim Parry Jim Parry on 3 Sep 2019 282 bytes Release 4.0.0-rc.1
<?php

namespace CodeIgniter\Router\Exceptions;

/**
 * Redirect exception
 */

class RedirectException extends \Exception
{
	public static function forUnableToRedirect(string $route, string $code)
	{
		return new static(lang('Redirect.forUnableToRedirect', [$route, $code]));
	}
}