Skip to content

Exceptions

phil/text-diff-bundle

The bundle has no exception of its own.

WhenWhat is thrown
The container is built with a negative max_edits or an unknown tokenizerSymfony\Component\Config\Definition\Exception\InvalidConfigurationException
text_diff is given a tokenizer name other than words, lines, paragraphs or htmlInvalidArgumentException
A text compared is not valid UTF-8Phil\TextDiff\Exception\InvalidText
text_diff_document is given JSON that is too large, not JSON, or not a documentPhil\Ujo\Exception\InvalidJson or Phil\Ujo\Exception\InvalidDocument
A block of a document has a type the renderer does not knowPhil\Ujo\Exception\UnknownBlockType

In a template, Twig wraps them in a Twig\Error\RuntimeError that names the template and the line.