J'ai l'habitude de nommer mes exception en prenant l'initiale de chaque partie du nom de l'exception, et en ajout "ex" a la fin. Par exemple : NoSuchMethodException nsmex
La je viens de tomber, pour la premiere fois, sur une SecurityException
Ca donne des trucs marrants :
Constructor constructor;
try {
t.write( DG2, "Getting ContainerBean( BigBean )" );
constructor = classobject.getConstructor( new Class[] { BIGBEAN_CLASS } );
} catch( NoSuchMethodException nsmex ) {
t.write( ERR, nsmex.toString() );
throw new InstantiationException( "NoSuchMethodException" );
} catch( SecurityException sex ) {
t.write( ERR, sex.toString() );
throw new InstantiationException( "SecurityException" );
}
Il y a un betisier du codage ?
Message édité par schbounz le 25-07-2002 à 17:17:29