{% if count > 0 %}

[{{ count - position + 1 }}/{{ count + 1 }}] {{ exception.class|abbr_class }}: {{ exception.message|replace({ "\n": '
' }) }}  {% spaceless %} - + {% endspaceless %}

{% else %}

Stack Trace

{% endif %}
    {% for i, trace in exception.trace %}
  1. {% include 'TwigBundle:Exception:trace.html.twig' with { 'prefix': position, 'i': i, 'trace': trace } only %}
  2. {% endfor %}