/**
* @inheritdoc
*/
public function getContent(Exception $exception)
{
$converter = $this->converter;
$errors = $converter($exception);
$encoder = $this->codecMatcher->getEncoder();
$content = is_array($errors) === true ? $encoder->encodeErrors($errors) : $encoder->encodeError($errors);
return $content;
}