ExceptionLocalizer implementing localization of some well known types of exceptions that may occur in the context of the Wikibase exception, as provided in $localizers.
More...
|
| __construct (array $localizers) |
|
| 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.
|
|
ExceptionLocalizer implementing localization of some well known types of exceptions that may occur in the context of the Wikibase exception, as provided in $localizers.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Kinzler
-
Katie Filbert < aude..nosp@m.wiki.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
◆ __construct()
Wikibase\Repo\Localizer\DispatchingExceptionLocalizer::__construct |
( |
array | $localizers | ) |
|
- Parameters
-
ExceptionLocalizer[] | $localizers | |
◆ getExceptionMessage()
Wikibase\Repo\Localizer\DispatchingExceptionLocalizer::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
-
InvalidArgumentException | If localization of the given exception is not supported. |
Implements Wikibase\Repo\Localizer\ExceptionLocalizer.
◆ getLocalizerForException()
Wikibase\Repo\Localizer\DispatchingExceptionLocalizer::getLocalizerForException |
( |
Exception | $exception | ) |
|
|
private |
◆ hasExceptionMessage()
Wikibase\Repo\Localizer\DispatchingExceptionLocalizer::hasExceptionMessage |
( |
Exception | $ex | ) |
|
◆ $localizers
array Wikibase\Repo\Localizer\DispatchingExceptionLocalizer::$localizers |
|
private |
The documentation for this class was generated from the following file: