Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

io FileWriter, caught or declared to be thrown  RSS feed

 
Je Th
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I�m new at this. My question regards a common error message I�m been receiving lately. java:15: unreported exception java.io.IOException; must be caught or declared to be thrown. This appear in several situations, every time I solve it I haven�t got a clue what I did to solve it. So I need help to interpret the message. Dose anyone have a minute over for a short explanation?
Thanks.
 
Ram Mohan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
an exception is an error that must be handled by the programmer or "thrown" back to the method which has called this particular method. Even main() is called by the JVM & hence even main can "throw" back the exception to the JVM. rather than me trying to explain this to you, i'll let the developers at Sun do the honours....and trust me, they do a very good job...
http://java.sun.com/docs/books/tutorial/essential/exceptions/index.html
hope it helped
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!