W3cubDocs

/CakePHP 3.4

Class RedirectException

An exception subclass used by the routing layer to indicate that a route has resolved to a redirect.

The URL and status code are provided as constructor arguments.

throw new RedirectException('http://example.com/some/path', 301);
Exception implements Throwable
Extended by RuntimeException
Extended by Cake\Routing\Exception\RedirectException

Inherited Properties

  • code, file, line, message

© 2005–2017 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/3.4/class-Cake.Routing.Exception.RedirectException.html