[Top][All Lists]
[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>
- Declaring RuntimeExceptions?, Sascha Brawer, 2003/09/11
- Re: Declaring RuntimeExceptions?,
Brian Jones <=
- Re: Declaring RuntimeExceptions?, Ingo Prötel, 2003/09/11
- Re: Declaring RuntimeExceptions?, Otavio Pereira, 2003/09/11
- RE: Declaring RuntimeExceptions?, David Holmes, 2003/09/11
- Re: Declaring RuntimeExceptions?, Eric Blake, 2003/09/11
- Re: Declaring RuntimeExceptions?, Sascha Brawer, 2003/09/11
- Re: Declaring RuntimeExceptions?, Stephen Crawley, 2003/09/11
- RE: Declaring RuntimeExceptions?, David Holmes, 2003/09/11
- Re: Declaring RuntimeExceptions?, Tom Tromey, 2003/09/17
Re: Declaring RuntimeExceptions?, Tom Tromey, 2003/09/11