Replaced all instances of Exception with std::exception