*/
class ApiErrorFormatter {
/** @var Title Dummy title to silence warnings from MessageCache::parse() */
*/
class ApiErrorFormatter {
/** @var Title Dummy title to silence warnings from MessageCache::parse() */
*/
public function formatException( $exception, array $options = [] ) {
return $this->formatMessage(
*/
public function formatException( $exception, array $options = [] ) {
return $this->formatMessage(
$this->getMessageFromException( $exception, $options ),
$options['format'] ?? null
);
$this->getMessageFromException( $exception, $options ),
$options['format'] ?? null
);