Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\UserInputException Class Reference

Used in special pages and elsewhere to handle user input errors, allow them to bubble up to presentation layer and contain message that can be displayed to the user in their language. More...

+ Inheritance diagram for Wikibase\Lib\UserInputException:
+ Collaboration diagram for Wikibase\Lib\UserInputException:

Public Member Functions

 __construct ( $key, array $params, $message, Exception $previous=null)
 
- Public Member Functions inherited from Wikibase\Lib\MessageException
 getKey ()
 
 getParams ()
 

Additional Inherited Members

- Protected Attributes inherited from Wikibase\Lib\MessageException
 $key
 
 $params
 

Detailed Description

Used in special pages and elsewhere to handle user input errors, allow them to bubble up to presentation layer and contain message that can be displayed to the user in their language.

Author
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\UserInputException::__construct (   $key,
array  $params,
  $message,
Exception  $previous = null 
)
See also
MessageException::__construct
Parameters
string$key
array$paramsList of parameters, depending on the message. Since this is a "user input" exception, callers are expected to pass in unescaped user input. This class will take care of proper wikitext escaping.
string$message
Exception | null$previous

Reimplemented from Wikibase\Lib\MessageException.


The documentation for this class was generated from the following file: