directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fe...@otego.com>
Subject Exception to be or not to be?
Date Mon, 07 Jun 2010 14:43:48 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Should an exception be thrown or not?

public final void modify( ModifyOperationContext modifyContext ) throws
LdapException
{
    try
    {
        Entry modifiedEntry = store.modify( modifyContext.getDn(),
modifyContext.getModItems() );
        modifyContext.setAlteredEntry( modifiedEntry );
    }
    catch ( Exception e )
    {
    }
}


http://people.apache.org/~felixk/apacheds-docs/xref/org/apache/directory/server/core/partition/impl/xdbm/AbstractXdbmPartition.html#303
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAkwNBaQACgkQ2lZVCB08qHEMagCUCGVYrVZxQtcjdGgSlk8sC8Q+
GQCeJUYwcfthbgFgYTO8zjdGAF/zuE4=
=B1iQ
-----END PGP SIGNATURE-----

Mime
View raw message