commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <si...@ecnetwork.co.nz>
Subject [digester] assertions throw RuntimeException not Error
Date Wed, 29 Oct 2003 00:56:24 GMT
Hi,

As agreed on the list, here is a patch to change the "assertions" in
plugins to throw an object subclassing RuntimeException rather than
Error.

File plugins/PluginAssertionError.java can now be deleted.
It has been replaced by PluginAssertionFailure (attached).

I decided not to name the thrown class PluginAssertionException because
this patch actually shows the disadvantage of naming the class by its
inherited type! If you prefer, feel free to
   s/PluginAssertionFailure/PluginAssertionException/
in all relevant files.

Regards,

Simon

Mime
View raw message