MediaWiki REL1_34
MetadataMergeException.php
Go to the documentation of this file.
1<?php
23namespace MediaWiki\Session;
24
25use Exception;
26use UnexpectedValueException;
27
35class 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}
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=[])