File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

try catch...........

 
faiza haris
Ranch Hand
Posts: 173
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why does it give ... undeclared exception e.......error?

I added some UBB code here. -Mapraputa
[This message has been edited by Mapraputa Is (edited October 19, 2000).]
 
Surya Bahadur
Ranch Hand
Posts: 88
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
You need to say that your method throws exception if you are throwing that exception in your code,so change the method signature to
private void test() throws MalformedURLException,EOFException
Then your code would compile,or comment out the throw statement in the catch block.
Surya
 
faiza haris
Ranch Hand
Posts: 173
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic