On 6/7/10 4:43 PM, Felix Knecht wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Should an exception be thrown or not?

Sure we must !!!

public final void modify( ModifyOperationContext modifyContext ) throws
LdapException
{
     try
     {
         Entry modifiedEntry = store.modify( modifyContext.getDn(),
modifyContext.getModItems() );
         modifyContext.setAlteredEntry( modifiedEntry );
     }
     catch ( Exception e )
     {
Bad bad bad ! throw new DirtyCodeException( "Yuuuk !!" );
     }
}

--
Regards,
Cordialement,
Emmanuel Lécharny
www.nextury.com


Reply via email to