MediaWiki REL1_32
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=[])
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable & $code
Definition hooks.txt:895
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))