Wikibase
MediaWiki Wikibase extension
|
Localizes ChangeOpDeserializationExceptions. More...
Public Member Functions | |
hasExceptionMessage (Exception $exception) | |
Whether this localizer can handle the given exception. | |
Public Member Functions inherited from Wikibase\Repo\Localizer\ExceptionLocalizer | |
getExceptionMessage (Exception $ex) | |
Returns a Message object containing a localized message representing the exception, in a form appropriate for display to the user. | |
Localizes ChangeOpDeserializationExceptions.
NOTE: Only exceptions with error codes that prepended with "wikibase-api" form the i18n message key are localized.
Wikibase\Repo\Localizer\ChangeOpDeserializationExceptionLocalizer::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.