CMS 3D CMS Logo

Functions

/data/refman/pasoursint/CMSSW_6_1_2_SLHC4_patch1/src/Utilities/StorageFactory/src/Throw.cc File Reference

#include "Utilities/StorageFactory/src/Throw.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <ostream>
#include <cstring>

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 19 of file Throw.cc.

References cms::Exception::addContext().

{  
  edm::Exception ex(category);
  ex << call << " failed with system error '"
     << strerror (error) << "' (error code " << error << ")";
  ex.addContext(context);
  throw ex;
}