Add some of the basic REST API class hierarchies: * EntryPoint * Router * Request * Response * Handler The actual entry point file rest.php has been moved to a separate commit, so this is just an unused library and service. Bug: T221177 Change-Id: Ifca6bcb8a304e8e8b7f52b79c607bdcebf805cd1
14 lines
354 B
PHP
14 lines
354 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Rest;
|
|
|
|
/**
|
|
* This is the base exception class for non-fatal exceptions thrown from REST
|
|
* handlers. The exception is not logged, it is merely converted to an
|
|
* error response.
|
|
*/
|
|
class HttpException extends \Exception {
|
|
public function __construct( $message, $code = 500 ) {
|
|
parent::__construct( $message, $code );
|
|
}
|
|
}
|