This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

CharacterStream file reader and write

 
veena bijur
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I am getting Io error, Where i went wrong? Please help.
 
Jeff Verdegan
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This says, "Ignore the important details about what went wrong. Just print out a vague message and continue on as if everything was fine."


Change your catch blocks to look like this to see more details about what went wrong and where:



That's still not proper exception handling, but at least you'll be able to diagnose your problem.
 
veena bijur
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, now i could figure it out the error. made changes its working now.
 
Tony Docherty
Bartender
Pie
Posts: 2878
59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic