MediaWiki  master
MetadataMergeException.php
Go to the documentation of this file.
1 <?php
23 namespace MediaWiki\Session;
24 
25 use Exception;
26 use UnexpectedValueException;
27 
35 class MetadataMergeException extends UnexpectedValueException {
37  protected $context;
38 
45  public function __construct(
46  $message = '',
47  $code = 0,
48  Exception $previous = null,
49  array $context = []
50  ) {
51  parent::__construct( $message, $code, $previous );
52  $this->context = $context;
53  }
54 
59  public function getContext() {
60  return $this->context;
61  }
62 
67  public function setContext( array $context ) {
68  $this->context = $context;
69  }
70 }
MediaWiki\Session\MetadataMergeException
Subclass of UnexpectedValueException that can be annotated with additional data for debug logging.
Definition: MetadataMergeException.php:35
MediaWiki\Session\MetadataMergeException\$context
array $context
Definition: MetadataMergeException.php:37
MediaWiki\Session\MetadataMergeException\getContext
getContext()
Get context data.
Definition: MetadataMergeException.php:59
MediaWiki\Session
Definition: BotPasswordSessionProvider.php:24
MediaWiki\Session\MetadataMergeException\setContext
setContext(array $context)
Set context data.
Definition: MetadataMergeException.php:67
MediaWiki\Session\MetadataMergeException\__construct
__construct( $message='', $code=0, Exception $previous=null, array $context=[])
Definition: MetadataMergeException.php:45