int
main(int, char *[])
{
using PixelType = double;
ReaderType::Pointer reader = ReaderType::New();
reader->SetFileName("nofile.png");
try
{
reader->Update();
}
catch (itk::ExceptionObject & err)
{
std::cerr << "ExceptionObject caught !" << std::endl;
std::cerr << err << std::endl;
return EXIT_SUCCESS;
}
return EXIT_FAILURE;
}