Modified catch statement to edm::Exception