Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\Localizer\ChangeOpValidationExceptionLocalizer Class Reference
+ Inheritance diagram for Wikibase\Repo\Localizer\ChangeOpValidationExceptionLocalizer:
+ Collaboration diagram for Wikibase\Repo\Localizer\ChangeOpValidationExceptionLocalizer:

Public Member Functions

 __construct (ValueFormatter $paramFormatter)
 
 getExceptionMessage (Exception $exception)
 Returns a Message object containing a localized message representing the exception, in a form appropriate for display to the user.
 
 hasExceptionMessage (Exception $exception)
 Whether this localizer can handle the given exception.
 

Private Attributes

ValidatorErrorLocalizer $validatorErrorLocalizer
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Localizer\ChangeOpValidationExceptionLocalizer::__construct ( ValueFormatter $paramFormatter)
Parameters
ValueFormatter$paramFormatterA formatter for formatting message parameters as wikitext. Typically some kind of dispatcher.

Member Function Documentation

◆ getExceptionMessage()

Wikibase\Repo\Localizer\ChangeOpValidationExceptionLocalizer::getExceptionMessage ( Exception $ex)

Returns a Message object containing a localized message representing the exception, in a form appropriate for display to the user.

The localized message may or may not contain the text returned by $ex->getMessage().

Exceptions
InvalidArgumentExceptionIf localization of the given exception is not supported.

Implements Wikibase\Repo\Localizer\ExceptionLocalizer.

◆ hasExceptionMessage()

Wikibase\Repo\Localizer\ChangeOpValidationExceptionLocalizer::hasExceptionMessage ( Exception $ex)

Whether this localizer can handle the given exception.

This is intended for use by a dispatcher to determine which localizer can handle a given exception.

Implements Wikibase\Repo\Localizer\ExceptionLocalizer.

Member Data Documentation

◆ $validatorErrorLocalizer

ValidatorErrorLocalizer Wikibase\Repo\Localizer\ChangeOpValidationExceptionLocalizer::$validatorErrorLocalizer
private

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