Update File.hpp

Added exception definition