CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
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 
)

Definition at line 7 of file Throw.cc.

References cms::Exception::addContext().

Referenced by IOChannel::close(), File::flush(), RemoteFile::get(), IOChannel::isBlocking(), RemoteFile::local(), File::position(), IOChannel::read(), File::read(), IOChannel::readv(), File::resize(), IOChannel::setBlocking(), File::size(), File::sysduplicate(), File::sysopen(), IOChannel::write(), File::write(), and IOChannel::writev().

10 {
12  ex << call << " failed with system error '"
13  << strerror (error) << "' (error code " << error << ")";
14  ex.addContext(context);
15  throw ex;
16 }
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().

22 {
24  ex << call << " failed with system error '"
25  << strerror (error) << "' (error code " << error << ")";
26  ex.addContext(context);
27  throw ex;
28 }