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

reg. super class exceptions

 
sanjay kumar
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"cannot catch an exception unless it is thrown in try block"

try
{
}

catch(FileNotFoundException)
{
}

//gives compiler error.
but you can catch a super class exception which is not thrown in try block.
try
{
}

catch(Exception)
{
}
// no compiler error
what are all the super class exceptions?
whether i should know all the exceptions for the exam (1.4)
 
Aniket Patil
Ranch Hand
Posts: 218
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What can you catch when try block does not throw exception?

http://www.xyzws.com/faq.do?cat=faq&article=96
[ September 17, 2006: Message edited by: Aniket Patil ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic