Re: Where can I find a list of Exceptions that I am allowed to throw?
Karl Uppiano wrote:
Finally, JavaDoc, by default, generates a list of exceptions defined for
every package. It shows up near the bottom of the lower left pane when
viewing JavaDocs in frames mode.
H. wrote:
I should have clarified. What I'm looking for is a list of exceptions
that are already created. While I could create my own, I'd rather use
something that already exists, if possible.
Patricia Shanahan wrote:
Every exception that already exists is part of some package. Look in the
API javadocs, near the bottom of the lower left pane for e.g. the
java.lang package.
Or leave the package selection at "All Classes" and spend some time going
through every class description to see which are exceptions.
All these approaches will only give you the list of exceptions in the java.
and javax. packacge. It is hardly practical to create a list of all the
exceptions so far created. For one thing, as soon as I hear that such a list
is being compiled, I'll start writing more just to keep that list out of date.
-- Lew