throw with String

Patrick Wright pdoubleya at
Thu Sep 16 02:10:54 PDT 2010

People - pretty soon Joe Darcy is going to show up in a bad mood.
Project Coin is not interested in any more submissions or discussion
like this, and if it were, as Joe will soon remind you, it would only
be with a detailed proposal for how it should work and be implemented.
The list is now just used for updates regarding the implementations of
the respective proposals that were selected.

It's an interesting discussion, but I think you should just take it
somewhere else.


On Thu, Sep 16, 2010 at 10:25 AM, Ralf Ebert <ralf at> wrote:
>> Isn't this a java.lang.Error:
>> "An Error is a subclass of Throwable that indicates serious problems
>> that a reasonable application should not try to catch."
> imho "serious" means "JVM almost dying", I was thinking more about
> casual, unserious errors like:
> throw new RuntimeException("You can specify a width in pixel OR in
> percent, but not both!");
> throw new RuntimeException("setFoo() requires bar.");
> throw new RuntimeException("Value cannot be set because of null value in
> nested property 'foo'!");
> (these are cases from a library I'm writing where I'm very sure than an
> application developer is misusing the library when trying to catch one
> of these exceptions specifically)
> Ralf

More information about the coin-dev mailing list