bval-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Benson (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BVAL-25) When validating a bean whose getter throws a RTE, it must be wrapped in a ValidationException
Date Sat, 07 Apr 2012 05:23:31 GMT

     [ https://issues.apache.org/jira/browse/BVAL-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matt Benson updated BVAL-25:
----------------------------

    Fix Version/s: 0.2-incubating
    
> When validating a bean whose getter throws a RTE, it must be wrapped in a ValidationException
> ---------------------------------------------------------------------------------------------
>
>                 Key: BVAL-25
>                 URL: https://issues.apache.org/jira/browse/BVAL-25
>             Project: BVal
>          Issue Type: Bug
>          Components: jsr303
>    Affects Versions: 0.1-incubating
>            Reporter: Carlos Vara
>            Assignee: Roman Stumm
>             Fix For: 0.2-incubating
>
>         Attachments: ExceptionHandling.patch, ExceptionsContractTest.java, UnknownPropertyException.java
>
>
> To fix this, I did some cleaning in the way exceptions are handled
> - Created UnknownPropertyException, which extends ValidationException, to easily route
that case and translate it to an IllegalArgumentException at top level method exit.
> - All RTE thrown by getters in the validated beans will be wrapped in a ValidationException.
> - Changed method unrecoverableValidationError(..) to build exceptions instead of throwing
them.
> - Created a set of tests that verify that the methods in ClassValidator honor the exception
contract in the spec.
> 3 more tests pass.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message