> I know the TorqueException/Exception problem occurs because of
> differences in exceptions between the fulcrum security api and torque.
> I can't remember the details on why Exception is better, but there was
a
> problem.

If I remember correctly, it's because the Fulcrum security API wants
save methods to throw TurbineSecurityException if an error occurs.

If the Base save throws an Exception, this works fine, because you can
case TurbineSecurityException to Exception and clients of the Base API
are none the wiser.

But if the Base save throws TorqueException, you can't have the
extension save throw TurbineSecurityException because you can't case a
TurbineSecurityException to a TorqueException for clients of the Base
API to handle.

So when overriding methods, you can only throw declared Exceptions in
the child method that are descendents of the base method's declared
Exception.

- Stephen


--
To unsubscribe, e-mail:   <mailto:turbine-torque-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-torque-dev-help@;jakarta.apache.org>

Reply via email to