00001 #include "Utilities/StorageFactory/src/Throw.h" 00002 #include "FWCore/Utilities/interface/Exception.h" 00003 #include <ostream> 00004 #include <cstring> 00005 00006 void 00007 throwStorageError (const char *context, const char *call, int error) 00008 { 00009 throw cms::Exception (context) 00010 << call << " failed with system error '" 00011 << strerror (error) << "' (error code " << error << ")"; 00012 }