Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8277263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:38:23+00:00 2026-06-08T08:38:23+00:00

From the documentation : All of the error templates live inside TwigBundle. To override

  • 0

From the documentation:

All of the error templates live inside TwigBundle. To override the
templates, we simply rely on the standard method for overriding
templates that live inside a bundle.

And:

To see the full list of default error templates, see the
Resources/views/Exception directory of the TwigBundle.

Looking at the after-mentioned directory i can find several files. I’m interested in custom templates for 403, 404 and 500 errors, so i created error.html.twig (parent template) and error403.html.twig, error404.html.twig and error500.html.twig that extends from 'TwigBundle:Exception:error.html.twig' (overridden by my custom parent template).

Is this correct? What happens if another kind of error or exception is thrown?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:38:25+00:00Added an answer on June 8, 2026 at 8:38 am

    Yes it is correct.

    All other kind of exceptions will be caught by Kernel and error500.html.twig page will be rendered.

    To test it, you can turn off your debug for a moment, by switching second parameter passed to AppKerner constructor in app_dev.php

    $kernel = new AppKernel(‘dev’, false);

    Then you can

    1. type wrong address to test 404 error page
    2. throw any exception to test 500 error page

    throw new \Exception(); // test 500 error page

    1. throw

    throw new
    \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException();
    or
    throw new
    \Symfony\Component\HttpKernel\Exception\HttpException(403);
    //to test 403 error page

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After reading monkeytalk faq from http://www.gorillalogic.com/testing-tools/monkeytalk/documentation/monkeytalk-faq : How does it all work? MonkeyTalk is
Building wxWidgets seems impossible. I followed all the steps from the documentation page http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef
I know from documentation we can find distance between two CLLocation points using the
I've got an example from documentation for Text.Parsec.Expr . expr = buildExpressionParser table term
From the documentation: Do not combine the call to Randomize in a loop with
From the documentation of UITableView / UITableViewController: If you decide to use a UIViewController
From the documentation here http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.login.layouttemplate.aspx i had customized the user interface of login control
From the documentation: If the platform supports the unsetenv() function, you can delete items
As you can see from the documentation the way to start an Activity to
I am not clear from the documentation - when I indicate a cell width

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.