3 namespace MediaWiki\Rest
;
6 * This is the base exception class for non-fatal exceptions thrown from REST
7 * handlers. The exception is not logged, it is merely converted to an
10 class HttpException
extends \Exception
{
11 public function __construct( $message, $code = 500 ) {
12 parent
::__construct( $message, $code );