Wikibase
MediaWiki Wikibase extension
|
Provides a Message for ParseException for localized errors. More...
Public Member Functions | |
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. | |
Provides a Message for ParseException for localized errors.
Wikibase\Repo\Localizer\ParseExceptionLocalizer::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().
InvalidArgumentException | If localization of the given exception is not supported. |
Implements Wikibase\Repo\Localizer\ExceptionLocalizer.
Wikibase\Repo\Localizer\ParseExceptionLocalizer::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.