You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by Daniel Rall <dl...@finemaltcoding.com> on 2003/11/22 02:20:14 UTC

Re: Interface org.apache.torque.dsfactory.DataSourceFactory.getDataSource throws TorqueException

Todd Carmichael wrote:
[Interface org.apache.torque.dsfactory.DataSourceFactory.getDataSource throws 
TorqueException.]
> However implementation of DataSourceFactory by
> org.apache.torque.dsfactory.SharedPoolDataSourceFactory does NOT throw
> TorqueException.  For one, it seems very odd that this is not an error by
 > Java.

Java does not require methods to declare all of the possible exceptions 
mentioned by the interface their class implements.

> I would say this is a bug and SharedPoolDataSourceFactory should be
> marked as throwing a TorqueException.

Why?  The implementation doesn't throw TorqueException, does it?


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org