Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Checked Exceptions  RSS feed

 
Matt DeLacey
Ranch Hand
Posts: 318
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where can one find a list of checked vs. unchecked exceptions...this ALWAYS gets me when trying to decide if an overriding method is legal because I don't know which are checked and which aren't. Thanks.

Matt
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All subclasses of <code>Exception</code> which are not subclasses of <code>RuntimeException</code> are checked exceptions. Java API documentation is the best place to look for the list.
Hope that helps,
Ajith
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!