[ http://jira.andromda.org/browse/SPRING-172?page=comments#action_12747 ]
Patrik Jurica commented on SPRING-172: -------------------------------------- It can lead to errors, because it breaks the principle of encapsulation. Suggest I have such an implementation method where I call a lot of methods that throw Exception subclasses that I would like to catch. Suggest I'd like to log these exceptions for example. Since my implementation method declares throws Exception I can easily forget to do it. > Eleminate excesive use of throws Exception in base and implementation classes > ----------------------------------------------------------------------------- > > Key: SPRING-172 > URL: http://jira.andromda.org/browse/SPRING-172 > Project: Spring Cartridge > Type: Improvement > Versions: 3.2-RC1 > Reporter: Patrik Jurica > Assignee: Chad Brandon > Priority: Minor > Attachments: SpringServiceBase.vsl, SpringServiceImpl.vsl > > Service base and implementation classes declare always "throws Exception" for > implementation service methods. This is very unpleasent and really not > needed. I suggest these declaration should declare the same exceptions as in > the interface of the service. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.andromda.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642