// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
//
// Contact: phylosoft @ gmail . com
-// WWW: www.phylosoft.org/forester
+// WWW: https://sites.google.com/site/cmzmasek/home/software/forester
package org.forester.io.parsers.phyloxml;
catch ( final PhylogenyParserException ex ) {
throw new SAXException( ex.getMessage() );
}
+ catch ( final PhyloXmlDataFormatException e ) {
+ throw new SAXException( e.getMessage() );
+ }
}
else if ( local_name.equals( PhyloXmlMapping.SEQUENCE_RELATION ) ) {
try {
}
}
}
- catch ( final PhylogenyParserException ex ) {
+ catch ( final PhyloXmlDataFormatException ex ) {
throw new SAXException( ex.getMessage() );
}
}
try {
PhyloXmlHandler.mapElementToPhylogeny( getCurrentXmlElement(), getCurrentPhylogeny() );
}
- catch ( final PhylogenyParserException ex ) {
- throw new SAXException( ex.getMessage() );
+ catch ( final PhylogenyParserException e ) {
+ throw new SAXException( e.getMessage() );
+ }
+ catch ( final PhyloXmlDataFormatException e ) {
+ throw new SAXException( e.getMessage() );
}
finishPhylogeny();
reset();
}
private void mapElementToPhylogenyNode( final XmlElement xml_element, final PhylogenyNode node )
- throws PhylogenyParserException {
+ throws PhylogenyParserException, PhyloXmlDataFormatException {
if ( xml_element.isHasAttribute( PhyloXmlMapping.BRANCH_LENGTH ) ) {
double d = 0;
try {
}
private static void mapElementToPhylogeny( final XmlElement xml_element, final Phylogeny phylogeny )
- throws PhylogenyParserException {
+ throws PhylogenyParserException, PhyloXmlDataFormatException {
for( int i = 0; i < xml_element.getNumberOfChildElements(); ++i ) {
final XmlElement element = xml_element.getChildElement( i );
final String qualified_name = element.getQualifiedName();