comparison transform/FeatureExtractionModelTransformer.cpp @ 1373:7a38b2cbb6c1

Catch exception from initialise
author Chris Cannam
date Mon, 06 Feb 2017 09:18:44 +0000
parents 54366398e636
children 8db84bd61eaa
comparison
equal deleted inserted replaced
1372:54366398e636 1373:7a38b2cbb6c1
632 } 632 }
633 633
634 void 634 void
635 FeatureExtractionModelTransformer::run() 635 FeatureExtractionModelTransformer::run()
636 { 636 {
637 if (!initialise()) { 637 try {
638 if (!initialise()) {
639 abandon();
640 return;
641 }
642 } catch (const std::exception &e) {
638 abandon(); 643 abandon();
644 m_message = e.what();
639 return; 645 return;
640 } 646 }
641 647
642 DenseTimeValueModel *input = getConformingInput(); 648 DenseTimeValueModel *input = getConformingInput();
643 if (!input) { 649 if (!input) {