CMS 3D CMS Logo

Functions
Throw.h File Reference
#include "FWCore/Utilities/interface/EDMException.h"

Go to the source code of this file.

Functions

void throwStorageError (const char *category, const char *context, const char *call, int error)
 
void throwStorageError (edm::errors::ErrorCodes category, const char *context, const char *call, int error)
 

Function Documentation

void throwStorageError ( const char *  category,
const char *  context,
const char *  call,
int  error 
)
void throwStorageError ( edm::errors::ErrorCodes  category,
const char *  context,
const char *  call,
int  error 
)

Definition at line 13 of file Throw.cc.

References cms::Exception::addContext().

13  {
15  ex << call << " failed with system error '" << strerror(error) << "' (error code " << error << ")";
16  ex.addContext(context);
17  throw ex;
18 }