MediaWiki
master
MetadataMergeException.php
Go to the documentation of this file.
1
<?php
7
namespace
MediaWiki\Session
;
8
9
use Exception;
10
use UnexpectedValueException;
11
20
class
MetadataMergeException
extends
UnexpectedValueException {
22
protected
$context
;
23
30
public
function
__construct
(
31
$message =
''
,
32
$code = 0,
33
?Exception $previous =
null
,
34
array
$context
= []
35
) {
36
parent::__construct( $message, $code, $previous );
37
$this->context =
$context
;
38
}
39
44
public
function
getContext
() {
45
return
$this->context
;
46
}
47
51
public
function
setContext
( array
$context
) {
52
$this->context =
$context
;
53
}
54
}
MediaWiki\Session\MetadataMergeException
Subclass of UnexpectedValueException annotated with data for debug logs.
Definition
MetadataMergeException.php:20
MediaWiki\Session\MetadataMergeException\$context
array $context
Definition
MetadataMergeException.php:22
MediaWiki\Session\MetadataMergeException\setContext
setContext(array $context)
Set context data.
Definition
MetadataMergeException.php:51
MediaWiki\Session\MetadataMergeException\__construct
__construct( $message='', $code=0, ?Exception $previous=null, array $context=[])
Definition
MetadataMergeException.php:30
MediaWiki\Session\MetadataMergeException\getContext
getContext()
Get context data.
Definition
MetadataMergeException.php:44
MediaWiki\Session
Definition
BotPasswordSessionProvider.php:7
includes
Session
MetadataMergeException.php
Generated on Sat Dec 13 2025 07:26:40 for MediaWiki by
1.10.0