File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

suppress checked compile time exception

 
vik ar
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have your method throw the Exception instead of catching it.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic