#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) |
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 File::close(), 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(), File::write(), IOChannel::write(), and IOChannel::writev().
{ cms::Exception ex(category); ex << call << " failed with system error '" << strerror (error) << "' (error code " << error << ")"; ex.addContext(context); throw ex; }
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; }