Trails
  1. Trails
  2. TRAILS-54

Provide a default exception page

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      0

      Description

      We should provide an exception page:

      <contribution configuration-id="tapestry.Infrastructure">
          <property name="exceptionPageName" value="ExceptionPage"/>
      </contribution> 
      

        Activity

        Hide
        Kalle Korhonen added a comment -

        Instead of the above, trails-core now contributes ExceptionPresenter that handles all TrailsRuntimeExceptions. It's not perfect now you cannot contribute you own implementation. A better way would have been ExceptionPresenter pipeline, but it would have required Hivemind 1.1.2. Read more about it in the comments in trails-core. The Trails ExceptionPresenter renders a DefaultException page, or if entity type is provided and a correspoding page is available, a <Type>Exception page.

        You can still override the default Tapestry error page using the above syntax - which should make sense in a production environment

        Show
        Kalle Korhonen added a comment - Instead of the above, trails-core now contributes ExceptionPresenter that handles all TrailsRuntimeExceptions. It's not perfect now you cannot contribute you own implementation. A better way would have been ExceptionPresenter pipeline, but it would have required Hivemind 1.1.2. Read more about it in the comments in trails-core. The Trails ExceptionPresenter renders a DefaultException page, or if entity type is provided and a correspoding page is available, a <Type>Exception page. You can still override the default Tapestry error page using the above syntax - which should make sense in a production environment

          People

          • Assignee:
            Kalle Korhonen
            Reporter:
            Alejandro Scandroli
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: