Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2659

Improve exception handling with dynamically instantiated ErrorExceptionPage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 1.4.5, 1.4.6, 1.5-M1
    • None
    • wicket
    • None

    Description

      based on the discussion at

      http://old.nabble.com/error-page-td26968559.html

      I introduced the concept of a dynamically instantiated errorpage. If one uses a customized error page with

      getApplicationSettings().setInternalErrorPage(MyErrorPage.class);
      getExceptionSettings().setUnexpectedExceptionDisplay(IExceptionSettings.SHOW_INTERNAL_ERROR_PAGE);

      neither the exception nor the responsePage can be accessed. Analogous the handling of Pages with PageParameters
      the request cycle tries to find and use a constructor like

      public MyErrorPage(final Throwable throwable, final Page page) {
      ..
      }

      If this constructor is not found, wicket uses
      public MyErrorPage()

      { ...}


      as fallback.

      Attachments

        1. WICKET-2659.patch
          11 kB
          Ilja Pavkovic

        Activity

          People

            ivaynberg Igor Vaynberg
            pavkovic Ilja Pavkovic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Remaining Estimate - 4h
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified