Skip to content
Snippets Groups Projects
Commit fe65f98d authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

BUG: problem with exception catch (same in VectorDataReader?)

parent 0b5632d9
No related branches found
No related tags found
No related merge requests found
......@@ -64,21 +64,9 @@ PointSetFileReader<TOutputPointSet>
throw itk::ImageFileReaderException(__FILE__, __LINE__, "FileName must be specified", ITK_LOCATION);
}
this->TestFileExistanceAndReadability();
// Test if the file exists and if it can be open.
// An exception will be thrown otherwise.
//
try
{
m_ExceptionMessage = "";
this->TestFileExistanceAndReadability();
}
catch (itk::ExceptionObject &err)
{
m_ExceptionMessage = err.GetDescription();
}
std::ifstream ifs;
ifs.open(m_FileName.c_str(), std::ios::in | std::ios::binary);
liblas::LASReader reader(ifs);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment