if(msg.startsWith("Failed Authorisation"))
throw new JembossSoapException("Authentication Failed");
else if(msg.startsWith("Error"))
- JOptionPane.showMessageDialog(null, msg, "alert",
- JOptionPane.ERROR_MESSAGE);
+ throw new JembossSoapException(msg);
}
proganswer.put(s,vans.get(j+1));
}
catch (Exception e)
{
System.out.println("Exception in PrivateRequest "+
- e.getMessage ());
- throw new JembossSoapException(" Fault Code = " );
+ e.getMessage ()
+ );
+ e.printStackTrace();
+ throw new JembossSoapException(" Fault Code = " + e);
}
}
* functionality.
*
* Things to do
- * Test threadability
* Standardise the exceptions (currently errors are output on stdout)
* Allow server configuration
+ * Throw away JembossParams and Jemboss dependence
+ * Generalise results to return collections of objects - alignments, trees, annotations, etc.
*/
import java.net.*;
String alfile = h.get(thiskey).toString();
String format = IdentifyFile.Identify(alfile, "Paste");
SequenceI[] alignment = null;
-
+
if (FormatProperties.contains(format))
alignment = FormatAdapter.read(alfile, "Paste", format);
else