Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
faiza haris
Ranch Hand
Posts: 173
  • 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
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic