Marc Krisjanous wrote:
> Hi all,
> thank you for you great comments!
>
> Craig - could you possibly suggest a resource I can look at for the
> Throwable statement you used in your example? I do not understand how it
> works.
The first place to look for *any* class that is part of standard Java
(in this
case java.lang.Throwable) is the API Javadocs that correspond to your
JDK. You
can browse the Javadocs for 1.3 online (although Throwable has been
consistent
since 1.0 days) at:
http://java.sun.com/j2se/1.3/docs/api/index.html
Look up the Throwable class, and you will see that it is "the superclass
of all
errors and exceptions in the Java language". Therefore, a "catch
(Throwable t)"
clause will catch any possible error or exception, not matter what
specific
exception class is thrown.
For example, look at java.io.IOException -- you will see that it's
parent class
is java.lang.Exception, whose parent class is java.lang.Throwable.
Therefore,
an IOException is a Throwable, and will be caught by this clause.
If the concepts of superclasses and subclasses are unfamiliar to you,
I'd
suggest starting with some basic background books on Java (of which
there are
probably a hundred or so by now). An online resource is the Java
Language
Tutorial <http://java.sun.com/docs/books/tutorial> which briefly covers
the
basics, in particular the "Learning the Java Language" trail. Under the
"Essential Java Classes" trail, there is a specific lesson called
"Handling
Errors with Exceptions" that might be useful.
However, we're straying away from the SERVLET-INTEREST topics by now, so
further
questions should be addressed to a general Java oriented forum or
newsgroup.
>
> Best Regards
>
> Marc
>
Craig McClanahan
====================
See you at ApacheCon Europe <http://www.apachecon.com>!
Session VS01 (23-Oct 13h00-17h00): Sun Technical Briefing
Session T06 (24-Oct 14h00-15h00): Migrating Apache JServ
Applications to Tomcat
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html