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