Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3075

Throwing an IllegalArgumentException should display ErrorPage

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Resolved
    • 2.0.0-RC1
    • 2.0.0-RC2
    • None
    • JPA

    Description

      This can be reproduced using the demo of the Error Reporting Service in the JPA demo app. When clicking on the button "Trigger an Error" a red message is shown saying "invalid data access api usage":

      Instead it should show the viewer error page with the details of the custom EmailTicket returned by the ErrorReportingServiceDemoImplementation implementation.

      When changing the IllegalArgumentException to a NullPointerException it works as expected:

       

      Attachments

        1. image-2022-06-13-23-48-56-870.png
          8 kB
          Martin Hesse
        2. image-2022-06-13-23-50-44-870.png
          172 kB
          Martin Hesse

        Activity

          People

            hobrom Andi Huber
            mwhesse Martin Hesse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: