You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@causeway.apache.org by "Andi Huber (Jira)" <ji...@apache.org> on 2023/04/13 15:54:00 UTC
[jira] [Resolved] (CAUSEWAY-3075) Throwing an IllegalArgumentException should display ErrorPage
[ https://issues.apache.org/jira/browse/CAUSEWAY-3075?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andi Huber resolved CAUSEWAY-3075.
----------------------------------
Resolution: Resolved
resolved by not passing IllegalArgumentException or IllegalStateException to the JpaDialect exception translation infrastructure
> Throwing an IllegalArgumentException should display ErrorPage
> -------------------------------------------------------------
>
> Key: CAUSEWAY-3075
> URL: https://issues.apache.org/jira/browse/CAUSEWAY-3075
> Project: Causeway
> Issue Type: Improvement
> Components: Persistence JPA, Viewer Wicket
> Affects Versions: 2.0.0-RC1
> Environment: JPA
> Reporter: Martin Hesse
> Assignee: Andi Huber
> Priority: Minor
> Fix For: 2.0.0-RC2
>
> Attachments: image-2022-06-13-23-48-56-870.png, image-2022-06-13-23-50-44-870.png
>
>
> 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":
> !image-2022-06-13-23-48-56-870.png!
> 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:
> !image-2022-06-13-23-50-44-870.png!
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)