wiki.techinc.nl/includes/Rest/RouteDefinitionException.php
daniel 23e0b606bd REST: allow redirects to be defined without specifying a handler
Make the Router class know about redirect definitions, so it is no
necessary to explcitly specify the RedirectHandler.

Bug: T361840
Change-Id: I2f3bce5b426639f1c4ecf55a6c003794019acd14
2024-04-17 18:27:31 +02:00

9 lines
218 B
PHP

<?php
namespace MediaWiki\Rest;
class RouteDefinitionException extends \RuntimeException {
public function __construct( $message, $code = 0 ) {
parent::__construct( "Bad route definition: $message", $code );
}
}