Skip to content

Commit

Permalink
Better error handling. Related to bug: 3231
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalv committed Jun 20, 2012
1 parent 02ff8a2 commit f94862a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Expand Up @@ -267,7 +267,8 @@ private List<? extends ISequence> align(List<? extends ISequence>
}

} catch ( Exception e ) {
throw new BioclipseException("Error in KAlign WS: ", e);
throw new BioclipseException(
"Error in KAlign WS: " + e.getMessage(), e );
}

}
Expand Down
Expand Up @@ -20,6 +20,7 @@
import net.bioclipse.core.business.BioclipseException;
import net.bioclipse.core.domain.IProtein;
import net.bioclipse.core.domain.ISequence;
import net.bioclipse.core.util.LogUtils;
import net.bioclipse.ui.business.IUIManager;

import org.apache.log4j.Logger;
Expand Down Expand Up @@ -107,7 +108,7 @@ public Object execute( ExecutionEvent event ) throws ExecutionException {
try {
alignedProteins = kalign.alignProteins(proteins);
} catch (BioclipseException e) {
// TODO: Better error handling
LogUtils.handleException( e, logger, "net.bioclipse.align.kalign.ws" );
return null;
}
List<ISequence> alignedSequences = new ArrayList<ISequence>();
Expand Down

0 comments on commit f94862a

Please sign in to comment.