Changeset 477

Show
Ignore:
Timestamp:
08/19/05 15:04:52 (8 years ago)
Author:
balister
Message:

Added some exception handling stuff for xml file not found errros

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • testInterface/branches/usrp-demo/testInterface.cpp

    r476 r477  
    9494   
    9595  // install application in DM 
     96  
     97try { 
    9698  domMgr->installApplication( name_SAD ); 
    97    
     99 
    98100  cout << name_SAD << " successfully installed onto Domain Manager\n"; 
    99101     
     
    130132  cout << (*_applicationFactories)[ 0 ] ->name() << endl; 
    131133   
    132   try 
    133     { 
    134134cout << "Calling appfactory->create now" << endl; 
    135135      app = (*_applicationFactories)[ 0 ] ->create( (*_applicationFactories)[ 0 ] ->name(), _appFacProps, _devSeq ); 
    136136    } 
    137137   
    138   catch (... ) 
    139     { 
    140       cerr << "Exception hurled from application create." << endl; 
    141       throw; 
    142     } 
    143    
    144138  cout << "Application created.  Ready to run or uninstall\n"; 
    145139   
    146140  return(app); 
     141 
     142} catch (CF::DomainManager::ApplicationInstallationError ex) { 
     143  cout << "Install application failed with message: " << ex.msg << endl; 
     144 
     145  exit(-1); // Handle errors better, needs work 
    147146} 
     147 
     148} 
     149 
    148150 
    149151int main( int argc, char** argv )