{
workspace->Execute( );
}
- catch( std::exception& err1 )
+ catch( itk::ExceptionObject& err2 )
{
std::cerr << std::endl << "********************************" << std::endl;
- std::cerr << "Error caught: " << err1.what( ) << std::endl;
+ std::cerr << "Error caught: " << err2 << std::endl;
std::cerr << "********************************" << std::endl;
return( 1 );
}
- catch( itk::ExceptionObject& err2 )
+ catch( std::exception& err1 )
{
std::cerr << std::endl << "********************************" << std::endl;
- std::cerr << "Error caught: " << err2 << std::endl;
+ std::cerr << "Error caught: " << err1.what( ) << std::endl;
std::cerr << "********************************" << std::endl;
return( 1 );
}