From: jprocter Date: Thu, 26 May 2005 17:21:01 +0000 (+0000) Subject: fairly pointless catch exception error information added. (attempt to X-Git-Tag: Release_2_0~170 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b3f66e3a4fd8d3f24a5a44f8716a41c84c4d1cb3;p=jalview.git fairly pointless catch exception error information added. (attempt to catch case when a parse() call breaks in an unexpected fashion...) --- diff --git a/src/jalview/io/FormatAdapter.java b/src/jalview/io/FormatAdapter.java index 0484bdd..dba0c61 100755 --- a/src/jalview/io/FormatAdapter.java +++ b/src/jalview/io/FormatAdapter.java @@ -36,7 +36,10 @@ public class FormatAdapter return afile.getSeqsAsArray(); } - catch (Exception e) {} + catch (Exception e) { + System.err.println("Failed to read alignment using the '"+format+"' reader."); + e.printStackTrace(); + } return null; } @@ -68,7 +71,10 @@ public class FormatAdapter afile.setSeqs(s); return afile.print(); } - catch (Exception e) {} + catch (Exception e) { + System.err.println("Failed to write alignment as a '"+format+"' file\n"); + e.printStackTrace(); + } return null; } diff --git a/src/jalview/io/IdentifyFile.java b/src/jalview/io/IdentifyFile.java index 18e1a6a..55d771b 100755 --- a/src/jalview/io/IdentifyFile.java +++ b/src/jalview/io/IdentifyFile.java @@ -70,7 +70,8 @@ public class IdentifyFile } reader.close(); } - catch(Exception ex){ex.printStackTrace();} + catch(Exception ex){ + System.err.println("File Identification failed!"); ex.printStackTrace();} return reply; }