• Post Reply Bookmark Topic Watch Topic
  • New Topic

Searching for methods that throw a special Exception  RSS feed

 
Sasha Ruehmkorf
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to find all methods of every system class that throw a special exception?
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am unclear about the question but still i guess that you want to know about the methods of System class that throw exceptions. So simply you can refer Javadocs for System class.

Hope this helps
 
Sasha Ruehmkorf
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not really
With "system class" I meant all the standard classes that come with the Java2 Platform (in the packages java.lang, java.util and so on) So for example, is there a way to get a list of all the methods (like parse in DateFormat or parse in NumberFormat) that may throw a ParseException?
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can read the source for the runtime libraries. Look for src.zip in the JDK. An IDE like Eclipse can quickly find all references to any class. You could also Google for "static source code analysis" and find tools that might find "throws" clauses and skip others.
 
Sasha Ruehmkorf
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rightclick on the class-File and then "References" in Eclipse. That's it! Thanks for the hint Stan.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!