From 6af5ebe6f1879c7b705a42dab3bd51857e4e30b2 Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 24 Oct 2007 14:05:37 +0000 Subject: [PATCH] individual query error/exception report and bugfix --- src/jalview/ws/ASequenceFetcher.java | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/jalview/ws/ASequenceFetcher.java b/src/jalview/ws/ASequenceFetcher.java index 1e1f6f8..9605ad0 100644 --- a/src/jalview/ws/ASequenceFetcher.java +++ b/src/jalview/ws/ASequenceFetcher.java @@ -104,9 +104,17 @@ public class ASequenceFetcher qsb.append(fetcher.getAccessionSeparator()); } } while (doMultiple && qs.hasMoreElements()); - - // create a fetcher and go to it - AlignmentI seqset = fetcher.getSequenceRecords(qsb.toString()); + + AlignmentI seqset=null; + try { + // create a fetcher and go to it + seqset = fetcher.getSequenceRecords(qsb.toString()); + } catch (Exception ex) + { + System.err.println("Failed to retrieve the following from "+db); + System.err.println(qsb); + ex.printStackTrace(System.err); + } // TODO: Merge alignment together - perhaps if (seqset != null) { @@ -153,7 +161,7 @@ public class ASequenceFetcher int n = 0; while (qv.hasMoreElements()) { - System.err.print(" " + qv + ";"); + System.err.print(" " + qv.nextElement() + ";"); if (n++ > 10) { System.err.println(); -- 1.7.10.2