aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Rest/HttpException.php
blob: ae6dde2b3f4fb7797a6128e619d120c45820817d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?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 );
	}
}