{% for previousException in exception.allPrevious|reverse %} {{ previousException.class|abbr_class }} {{ include('@Twig/images/chevron-right.svg') }} {% endfor %} {{ exception.class|abbr_class }}

HTTP {{ status_code }} {{ status_text }}

{{- exception.message|nl2br|format_file_from_text -}}

{{ include('@Twig/images/symfony-ghost.svg') }}
{% set exception_as_array = exception.toarray %} {% set _exceptions_with_user_code = [] %} {% for i, e in exception_as_array %} {% for trace in e.trace %} {% if (trace.file is not empty) and ('/vendor/' not in trace.file) and ('/var/cache/' not in trace.file) and not loop.last %} {% set _exceptions_with_user_code = _exceptions_with_user_code|merge([i]) %} {% endif %} {% endfor %} {% endfor %}

{% if exception_as_array|length > 1 %} Exceptions {{ exception_as_array|length }} {% else %} Exception {% endif %}

{% for i, e in exception_as_array %} {{ include('@Twig/Exception/traces.html.twig', { exception: e, index: loop.index, expand: i in _exceptions_with_user_code or (_exceptions_with_user_code is empty and loop.first) }, with_context = false) }} {% endfor %}
{% if logger %}

Logs {% if logger.counterrors ?? false %}{{ logger.counterrors }}{% endif %}

{% if logger.logs %} {{ include('@Twig/Exception/logs.html.twig', { logs: logger.logs }, with_context = false) }} {% else %}

No log messages

{% endif %}
{% endif %}

{% if exception_as_array|length > 1 %} Stack Traces {{ exception_as_array|length }} {% else %} Stack Trace {% endif %}

{% for e in exception_as_array %} {{ include('@Twig/Exception/traces_text.html.twig', { exception: e, index: loop.index, num_exceptions: loop.length }, with_context = false) }} {% endfor %}
{% if currentContent is not empty %}

Output content

{{ currentContent }}
{% endif %}