X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FRnamlFile.java;fp=src%2Fjalview%2Fio%2FRnamlFile.java;h=d366edcb24c30b9437f7a9228cf7d0342d0872e3;hb=8ba93f7655ea7165579539158b6a5eb076135bba;hp=2b9a7b0c07889c190e20a0598e68e1aedcf30eaa;hpb=fe6b3fb39308b5c045849db2be75ba07824be776;p=jalview.git diff --git a/src/jalview/io/RnamlFile.java b/src/jalview/io/RnamlFile.java index 2b9a7b0..d366edc 100644 --- a/src/jalview/io/RnamlFile.java +++ b/src/jalview/io/RnamlFile.java @@ -31,6 +31,7 @@ import jalview.datamodel.AlignmentAnnotation; import jalview.datamodel.Annotation; import jalview.datamodel.Sequence; import jalview.datamodel.SequenceI; +import jalview.util.MessageManager; import fr.orsay.lri.varna.exceptions.ExceptionFileFormatOrSyntax; import fr.orsay.lri.varna.exceptions.ExceptionLoadingFailed; @@ -97,24 +98,21 @@ public class RnamlFile extends AlignFile _parse(); } catch (ExceptionPermissionDenied pdx) { - errormessage = "Couldn't access datasource (" + pdx.getMessage() - + ")"; + errormessage = MessageManager.formatMessage("exception.rnaml_couldnt_access_datasource", new String[]{pdx.getMessage()}); throw new IOException(pdx); } catch (ExceptionLoadingFailed lf) { - errormessage = "Couldn't process data as RNAML file (" - + lf.getMessage() + ")"; + errormessage = MessageManager.formatMessage("exception.ranml_couldnt_process_data", new String[]{lf.getMessage()}); throw new IOException(lf); } catch (ExceptionFileFormatOrSyntax iff) { - errormessage = "Invalid RNAML file (" + iff.getMessage() + ")"; + errormessage = MessageManager.formatMessage("exception.ranml_invalid_file", new String[]{iff.getMessage()}); throw new IOException(iff); } catch (Exception x) { error = true; - errormessage = "Problem parsing data as RNAML (" + x.getMessage() - + ")"; - throw new IOException("Couldn't parse the datasource as RNAML", x); + errormessage = MessageManager.formatMessage("exception.ranml_problem_parsing_data", new String[]{x.getMessage()}); + throw new IOException(errormessage , x); } }