MediaWiki REL1_28
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.

Author
Bryan Davis bd808.nosp@m.@wik.nosp@m.imedi.nosp@m.a.or.nosp@m.g
Note
© 2016 Bryan Davis and Wikimedia Foundation.
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 $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 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: