MediaWiki  master
MetadataMergeException.php
Go to the documentation of this file.
1 <?php
23 namespace MediaWiki\Session;
24 
25 use Exception;
27 
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 }
Subclass of UnexpectedValueException that can be annotated with additional data for debug logging...
setContext(array $context)
Set context data.
__construct( $message='', $code=0, Exception $previous=null, array $context=[])