Skip to content

Commit

Permalink
No need to declare methods as throwing Bioclipse Exception in the int…
Browse files Browse the repository at this point in the history
…erface. It is caught and handled by AOP during the method call.
  • Loading branch information
jonalv committed Jul 21, 2009
1 parent f3945aa commit 7736746
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Expand Up @@ -134,8 +134,7 @@ public ICDKMolecule loadMolecule( String path )
* @throws CoreException
*/
@Recorded
public ICDKMolecule loadMolecule( IFile file )
throws IOException, BioclipseException, CoreException;
public ICDKMolecule loadMolecule( IFile file );

@Recorded
@PublishedMethod(
Expand Down
Expand Up @@ -91,18 +91,15 @@ private ICDKMolecule loadSDFPart(SDFElement element){
} catch (IOException e) {
// TODO Auto-generated catch block
LogUtils.debugTrace( logger,e);
} catch (BioclipseException e) {
// TODO Auto-generated catch block
LogUtils.debugTrace( logger,e);
}finally{
}
finally {
try {
if(file!=null) file.delete(true,null);
if(folder!=null) folder.delete(true,null );
}catch (CoreException e) {
// TODO Auto-generated catch block
LogUtils.debugTrace( logger,e);
}

}

return null;
Expand Down

0 comments on commit 7736746

Please sign in to comment.