classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Declaring RuntimeExceptions?


From: Brian Jones
Subject: Re: Declaring RuntimeExceptions?
Date: 11 Sep 2003 08:45:04 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Sascha Brawer <address@hidden> writes:

> Hi all,
> 
> if the signature of a JDK method declares to throw some RuntimeException,
> should the Classpath do so, too?
> 
> For example, java.awt.Toolkit.createButton declares to throw
> java.awt.HeadlessException in the JDK, but not in Classpath.
> HeadlessException extends java.lang.RuntimeException.

It's not necessary to use a 'throws' clause with RuntimeException or
subclasses.

Brian
-- 
Brian Jones <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]