File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes suppress checked compile time exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "suppress checked compile time exception" Watch "suppress checked compile time exception" New topic
Author

suppress checked compile time exception

vik ar
Ranch Hand

Joined: Jul 31, 2009
Posts: 104
I want to handle checked exception via spring aop. At compile time a try catch is required otherwise compile time error results? Is there any way to suppress these errors?
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Have your method throw the Exception instead of catching it.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: suppress checked compile time exception
 
Similar Threads
Overiding with Exceptions
differ between checked and unchecked?
Checked exception and interface.
Is there compile time exceptions in java?
checked exception