Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4099317
HttpException.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
630 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
{
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
;
}
public
function
getErrorData
():
array
{
return
$this
->
errorData
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Aug 18, 15:46 (3 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
e6/bb/08272056772676d29825ee12f481
Default Alt Text
HttpException.php (630 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment