...instead of pcl::File::Exception. See code below. Georg
try
{
if(!File(sSourceFileName,FileMode::Read).CanRead()){
std::cout<<"stop in if"<<std::endl;
whyNot="Cannot read source file";
return false;
}
} catch (Exception &e) {
// FIXME why is this not File::Exception that is thrown by File()?
std::cout<<"caught "<<e.Message()<<std::endl;
whyNot=e.Message();
return false;
}
will never catch if I use catch (File::Exception &e)