MediaWiki REL1_32
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

 $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 $code, and MediaWiki\Session\MetadataMergeException\$context.

Member Function Documentation

◆ getContext()

MediaWiki\Session\MetadataMergeException::getContext ( )

◆ 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: