Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4083490
HttpException.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
677 B
Referenced Files
None
Subscribers
None
HttpException.php
View Options
<?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.
*
* @newable
*/
class
HttpException
extends
\Exception
{
/** @var array */
private
array
$errorData
;
/**
* @stable to call
*
* @param string $message
* @param int $code
* @param array $errorData
*/
public
function
__construct
(
$message
,
$code
=
500
,
$errorData
=
[]
)
{
parent
::
__construct
(
$message
,
$code
);
$this
->
errorData
=
$errorData
;
}
/**
* @return array
*/
public
function
getErrorData
():
array
{
return
$this
->
errorData
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Aug 18 2026, 07:14 (7 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a3/f6/f7ab66f2e275b97b0839d0ef5df9
Default Alt Text
HttpException.php (677 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment