The following code is a mix of code from p.310 and 333 of Head First
Java.
I have a class "TextEx", within which resides a method called "doRisky" which I would like to throw an Exception called "ScaryException", but I am getting some compile errors:
(A) - ScaryException cannot be resolved (or is not an exception type) for the method doRisky.
(B) - ScaryException cannot be resolved or is not a type
I am unsure if I need to "extends Exception" my the class that throws my "custom" exception?
I have tried using just the code on p.310 and 333, but can not get either of them to compile.
Any advice or comments are greatly appreciated,
Nick
[ edited to preserve formatting using the [code] and [/code]
UBB tags -ds ]
[ August 11, 2004: Message edited by: Dirk Schreckmann ]