MediaWiki  master
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. More...
 
 setContext (array $context)
 Set context data. More...
 

Protected Attributes

 $context
 

Detailed Description

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

Note
© 2016 Wikimedia Foundation and contributors
Since
1.27

Definition at line 35 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 45 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 59 of file MetadataMergeException.php.

References MediaWiki\Session\MetadataMergeException\$context.

Referenced by MediaWiki\Session\SessionManager\loadSessionInfoFromStore().

◆ setContext()

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

Set context data.

Parameters
array$context

Definition at line 67 of file MetadataMergeException.php.

References MediaWiki\Session\MetadataMergeException\$context.

Member Data Documentation

◆ $context


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