[hibernate-issues] [Hibernate-JIRA] Updated: (HV-228) InvalidateStateException needs to show the error messages in the message when it's thrown

Hardy Ferentschik (JIRA) noreply at atlassian.com
Fri Sep 25 09:20:50 EDT 2009


     [ http://opensource.atlassian.com/projects/hibernate/browse/HV-228?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik updated HV-228:
---------------------------------

    Fix Version/s: 3.2.0

> InvalidateStateException needs to show the error messages in the message when it's thrown
> -----------------------------------------------------------------------------------------
>
>                 Key: HV-228
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-228
>             Project: Hibernate Validator
>          Issue Type: New Feature
>    Affects Versions: 3.1.0.GA
>            Reporter: Ken Egervari
>             Fix For: 3.2.0
>
>   Original Estimate: 1 hour
>  Remaining Estimate: 1 hour
>
> I dunno if you fixed this in 4.0 releases. To make testing easier, I think the error messages should be viewable when the exception is thrown. I know it's possible to inspect the exception for these errors, but within a unit test, this is just too much work and it's annoying.
> In practice, we create all these objects and do tests. Sometimes these objects get sent to the database and are saved. 
> Now, let's say 3 validation constraints aren't met. On the outset, the developer is 100% blind and must code in a try/catch and print out the list of errors. When this happens over and over and over... it's just tedious. When a test fails because an unexpected validation exception is thrown, I don't want to have to do this - I want to instantly see what went wrong so I can make the changes to my test case and run it quickly.
> I think this change would facilitate much faster test/code cycles, and it shouldn't be hard to add in. 
> Thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list