3 namespace Drupal\redirect\Exception;
5 use Drupal\Component\Utility\SafeMarkup;
8 * Exception for when a redirect loop is detected.
10 class RedirectLoopException extends \RuntimeException {
13 * Formats a redirect loop exception message.
16 * The path that results in a redirect loop.
18 * The redirect ID that is involved in a loop.
20 public function __construct($path, $rid) {
21 parent::__construct(SafeMarkup::format('Redirect loop identified at %path for redirect %rid', ['%path' => $path, '%rid' => $rid]));