MediaWiki REL1_39
MediaWiki\Session\MetadataMergeException Class Reference

Subclass of UnexpectedValueException that can be annotated with additional data for debug logging. More...

Inheritance diagram for MediaWiki\Session\MetadataMergeException:
Collaboration diagram for MediaWiki\Session\MetadataMergeException:

Public Member Functions

 __construct ( $message='', $code=0, Exception $previous=null, array $context=[])
 
 getContext ()
 Get context data.
 
 setContext (array $context)
 Set context data.
 

Protected Attributes

array $context
 

Detailed Description

Subclass of UnexpectedValueException that can be annotated with additional data for debug logging.

Stability: newable
Since
1.27

Definition at line 36 of file MetadataMergeException.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Session\MetadataMergeException::__construct ( $message = '',
$code = 0,
Exception $previous = null,
array $context = [] )
Parameters
string$message
int$code
Exception | null$previous
array$contextAdditional context data

Definition at line 46 of file MetadataMergeException.php.

References MediaWiki\Session\MetadataMergeException\$context.

Member Function Documentation

◆ getContext()

MediaWiki\Session\MetadataMergeException::getContext ( )

Get context data.

Returns
array

Definition at line 60 of file MetadataMergeException.php.

References MediaWiki\Session\MetadataMergeException\$context.

◆ setContext()

MediaWiki\Session\MetadataMergeException::setContext ( array $context)

Set context data.

Parameters
array$context

Definition at line 68 of file MetadataMergeException.php.

References MediaWiki\Session\MetadataMergeException\$context.

Member Data Documentation

◆ $context


The documentation for this class was generated from the following file: