+ /* (non-Javadoc)
+ * @see jalview.io.AlignFile#parse()
+ */
+ public void parse() throws IOException
+ {
+ // rather than lose exception semantics whilst parsing RNAML with VARNA we
+ // wrap the routine and catch all exceptions before passing them up the
+ // chain as an IOException
+ try {
+ _parse();
+ } catch (Exception x)
+ {
+ error=true;
+ errormessage="Problem parsing data as RNAML ("+x.getMessage()+")";
+ throw new IOException("Couldn't parse the datasource as RNAML",x);
+ }
+ }