Page MenuHomeWickedGov Phorge

HttpException.php
No OneTemporary

Size
630 B
Referenced Files
None
Subscribers
None

HttpException.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.
*
* @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

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)

Event Timeline