db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <fisc...@seitenbau.net>
Subject RE: set(Foreign key) throws exception for no reason?
Date Mon, 15 Mar 2010 15:39:25 GMT
> When torque generates set methods for foreign keys, the methods thorws a
> TorqueException.
>
> Why is this? There is nothing in the methods that throws a
TorqueException
> and removing the throws clause does not generate a compiler error.

Maybe it is generated for overriding. Someone who wants to override the
method maybe wants to throw a TorqueException, so one has to declare it in
the base class.

But I'm not sure about this, there might also be a special case where it is
needed, but I do not know any.

    Thomas


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


Mime
View raw message