From b3f66e3a4fd8d3f24a5a44f8716a41c84c4d1cb3 Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 26 May 2005 17:21:01 +0000 Subject: [PATCH] fairly pointless catch exception error information added. (attempt to catch case when a parse() call breaks in an unexpected fashion...) --- src/jalview/io/FormatAdapter.java | 10 ++++++++-- src/jalview/io/IdentifyFile.java | 3 ++- 2 files changed, 10 insertions(+), 3 deletions(-) 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; } -- 1.7.10.2