|
Authored by: Anonymous on Tuesday, May 22 2012 @ 06:57 AM EDT |
The judge is most likely wanting to establish that point about the "throws"
keyword. Don't assume that just because something is a fact, the court has
already officially taken it into consideration.[ Reply to This | Parent | # ]
|
|
Authored by: Anonymous on Tuesday, May 22 2012 @ 07:58 AM EDT |
If a method doesn't check and catch (handle) its own
(non runtime)
exceptions - and therefore lets them pass to
the caller, it
MUST specify that
it throws the exception type. This is so
that callers can be aware of the type
of exceptional
conditions (ie. errors) that a method may return, and either
handle them, or let them bubble up to the next caller up the
stack (by
specifying that it throws the exception.
Specifying the exceptions that a
method may throw
Throwing an exception from within a
method
[ Reply to This | Parent | # ]
|
|
|
|
|