NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
exception.hpp File Reference
#include "ndn-cxx/detail/common.hpp"
#include <cerrno>
#include <boost/exception_ptr.hpp>
#include <boost/exception/enable_current_exception.hpp>
#include <boost/exception/enable_error_info.hpp>
#include <boost/exception/errinfo_errno.hpp>
#include <boost/exception/errinfo_nested_exception.hpp>
Include dependency graph for exception.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ndn
 Copyright (c) 2011-2015 Regents of the University of California.
 
 ndn::exception
 

Macros

#define NDN_THROW(e)
 
#define NDN_THROW_ERRNO(e)   NDN_THROW(e) << boost::errinfo_errno(errno)
 
#define NDN_THROW_NESTED(e)   NDN_THROW(e) << boost::errinfo_nested_exception(boost::current_exception())
 

Macro Definition Documentation

◆ NDN_THROW

#define NDN_THROW (   e)
Value:
throw boost::enable_current_exception(boost::enable_error_info(e)) \
<< boost::throw_file(__FILE__) \
<< boost::throw_line(__LINE__) \
<< boost::throw_function(__func__) \
NDN_DETAIL_THROW_STACKTRACE

Definition at line 61 of file exception.hpp.

Referenced by nfd::fw::AccessStrategy::AccessStrategy(), nfd::face::PcapHelper::activate(), ndn::security::pib::CertificateContainer::add(), ndn::security::pib::KeyContainer::add(), ndn::lp::Packet::add(), ndn::MetaInfo::addAppMetaInfo(), ndn::security::v2::KeyChain::addCertificate(), ndn::mgmt::Dispatcher::addControlCommand(), ndn::net::NetworkMonitorImplStub::addInterface(), ndn::mgmt::Dispatcher::addNotificationStream(), ndn::mgmt::Dispatcher::addStatusDataset(), ndn::mgmt::Dispatcher::addTopPrefix(), ndn::security::detail::CertificateBundleDecoder::append(), ndn::mgmt::StatusDatasetContext::append(), nfd::fw::asf::AsfStrategy::AsfStrategy(), nfd::face::NetworkPredicateBase::assign(), ndn::Name::at(), ndn::security::tpm::BackEndOsx::BackEndOsx(), ndn::security::transform::Base64Decode::Base64Decode(), ndn::security::transform::Base64Encode::Base64Encode(), ndn::Block::begin(), nfd::fw::BestRouteStrategy::BestRouteStrategy(), ndn::security::detail::Bio::Bio(), ndn::Block::Block(), ndn::security::transform::BlockCipher::BlockCipher(), ndn::Block::blockFromValue(), ndn::security::v2::Certificate::Certificate(), ndn::security::v2::validator_config::Rule::check(), ndn::detail::RsaKeyParamsInfo::checkKeySize(), ndn::detail::EcKeyParamsInfo::checkKeySize(), ndn::detail::AesKeyParamsInfo::checkKeySize(), ndn::detail::HmacKeyParamsInfo::checkKeySize(), nfd::ConfigFile::checkRange(), nfd::face::NetworkPredicateBase::clear(), ndn::RegexBackrefMatcher::compile(), nfd::rib::FibUpdater::computeAndSendFibUpdates(), ndn::security::tpm::BackEnd::constructAsymmetricKeyName(), ndn::security::v2::validator_config::Filter::create(), ndn::security::v2::validator_config::Checker::create(), ndn::security::v2::validator_config::Rule::create(), nfd::face::UdpFactory::createChannel(), ndn::security::tpm::BackEnd::createKey(), nfd::face::UdpFactory::createMulticastFace(), nfd::face::ProtocolFactory::createNetdevBoundFace(), ndn::Block::data(), nfd::DeadNonceList::DeadNonceList(), ndn::lp::DecodeHelper< TlvType, EmptyValue >::decode(), ndn::lp::DecodeHelper< TlvType, uint64_t >::decode(), ndn::lp::DecodeHelper< TlvType, std::pair< Buffer::const_iterator, Buffer::const_iterator > >::decode(), ndn::lp::FieldDecl< LOCATION, VALUE, TYPE, REPEATABLE, DECODER_TAG, ENCODER_TAG >::decode(), ndn::security::tpm::BackEndOsx::decrypt(), ndn::security::transform::PrivateKey::decrypt(), ndn::security::v2::KeyChain::deleteCertificate(), ndn::security::v2::KeyChain::deleteKey(), ndn::security::tpm::BackEndOsx::derivePublicKey(), ndn::security::transform::PrivateKey::derivePublicKey(), ndn::security::transform::DigestFilter::DigestFilter(), ndn::security::v2::DynamicTrustAnchorGroup::DynamicTrustAnchorGroup(), nfd::RibManager::enableLocalFields(), ndn::security::transform::PublicKey::encrypt(), ndn::mgmt::StatusDatasetContext::end(), ndn::Block::end(), nfd::TablesConfigSection::ensureConfigured(), nfd::face::EthernetFactory::EthernetFactory(), ndn::security::detail::EvpMdCtx::EvpMdCtx(), ndn::security::detail::EvpPkeyCtx::EvpPkeyCtx(), ndn::RegexTopMatcher::expand(), ndn::security::tpm::exportItem(), ndn::security::tpm::BackEnd::exportKey(), ndn::security::v2::extractIdentityFromCertName(), ndn::security::v2::extractIdentityFromKeyName(), ndn::security::v2::extractIdentityNameFromKeyLocator(), ndn::security::v2::extractKeyNameFromCertName(), ndn::Interest::extractSignedRanges(), ndn::FaceUri::FaceUri(), ndn::detail::cfstring::fromBuffer(), ndn::name::Component::fromEscapedString(), ndn::detail::cfstring::fromStdString(), ndn::Block::fromStream(), ndn::security::transform::generatePrivateKey(), ndn::random::generateSecureBytes(), ndn::net::GenlFamilyResolver::GenlFamilyResolver(), ndn::security::v2::AdditionalDescription::get(), nfd::rib::Service::get(), ndn::lp::Packet::get(), ndn::security::pib::CertificateContainer::get(), ndn::security::pib::KeyContainer::get(), ndn::Block::get(), ndn::security::pib::PibMemory::getCertificate(), ndn::security::pib::PibSqlite3::getCertificate(), ndn::security::pib::PibMemory::getDefaultCertificateOfKey(), ndn::security::pib::PibSqlite3::getDefaultCertificateOfKey(), ndn::security::pib::PibMemory::getDefaultIdentity(), ndn::security::pib::PibSqlite3::getDefaultIdentity(), ndn::security::pib::PibMemory::getDefaultKeyOfIdentity(), ndn::security::pib::PibSqlite3::getDefaultKeyOfIdentity(), ndn::security::v2::Certificate::getExtension(), nfd::face::PcapHelper::getFd(), ndn::nfd::FaceTraits< FaceEventNotification >::getFlagBit(), ndn::nfd::ControlParameters::getFlagBit(), ndn::Data::getFullName(), ndn::security::v2::TrustAnchorContainer::getGroup(), nfd::face::TcpFactory::getId(), nfd::face::UnixStreamFactory::getId(), nfd::face::WebSocketFactory::getId(), ndn::security::pib::PibMemory::getKeyBits(), ndn::security::pib::PibSqlite3::getKeyBits(), ndn::security::transform::PrivateKey::getKeyDigest(), ndn::KeyLocator::getKeyDigest(), ndn::SignatureInfo::getKeyLocator(), ndn::security::tpm::getKeyRef(), ndn::KeyLocator::getName(), ndn::security::v2::validator_config::getNameRelationFromString(), nfd::face::PcapHelper::getNDropped(), nfd::fw::asf::getParamValue(), ndn::security::v2::Certificate::getPublicKey(), ndn::security::tpm::BackEndMem::getScheme(), ndn::security::tpm::BackEndFile::getScheme(), ndn::security::pib::Pib::getTpmLocator(), ndn::SignatureInfo::getValidityPeriod(), ndn::nfd::ControlParameters::hasFlagBit(), ndn::security::transform::HexDecode::HexDecode(), ndn::security::pib::detail::IdentityImpl::IdentityImpl(), ndn::security::tpm::BackEnd::importKey(), ndn::security::v2::KeyChain::importPrivateKey(), ndn::security::v2::KeyChain::importSafeBag(), ndn::security::v2::TrustAnchorContainer::insert(), ndn::net::NetlinkSocket::joinGroup(), ndn::security::v2::KeyChain::KeyChain(), ndn::security::tpm::KeyHandleOsx::KeyHandleOsx(), ndn::util::DummyClientFace::linkTo(), nfd::face::UnixStreamChannel::listen(), ndn::security::v2::validator_config::ValidationPolicyConfig::load(), ndn::io::loadBuffer(), ndn::security::transform::PrivateKey::loadPkcs1(), ndn::security::transform::PublicKey::loadPkcs8(), ndn::security::transform::PrivateKey::loadPkcs8(), ndn::security::transform::PrivateKey::loadRaw(), ndn::MetadataObject::makeData(), ndn::security::InterestSigner::makeSignedInterest(), ndn::RegexComponentSetMatcher::match(), ndn::RegexComponentMatcher::match(), ndn::security::v2::validator_config::Rule::match(), ndn::MetadataObject::MetadataObject(), nfd::face::MulticastEthernetTransport::MulticastEthernetTransport(), nfd::fw::MulticastStrategy::MulticastStrategy(), ndn::net::NetworkMonitorImplOsx::NetworkMonitorImplOsx(), ndn::net::NetlinkSocket::nlmsgTypeToString(), nfd::general::onConfig(), ndn::net::NetlinkSocket::open(), ndn::security::pib::Identity::operator bool(), ndn::security::pib::Key::operator bool(), ndn::InterestFilter::operator const Name &(), ndn::operator""_block(), ndn::util::operator<<(), nfd::operator<<(), nfd::ConfigFile::parse(), ndn::Block::parse(), ndn::nfd::parseDatasetVector(), ndn::security::v2::parseLocatorUri(), ndn::util::parseLogLevel(), nfd::ConfigFile::parseNumber(), nfd::face::NetdevBound::parseRule(), ndn::security::v2::validator_config::parseSigType(), ndn::name::parseUriEscapedValue(), nfd::ConfigFile::parseYesNo(), nfd::face::PcapHelper::PcapHelper(), ndn::security::pib::PibSqlite3::PibSqlite3(), nfd::face::LpReliability::piggyback(), ndn::PrefixAnnouncement::PrefixAnnouncement(), ndn::lp::PrefixAnnouncementHeader::PrefixAnnouncementHeader(), nfd::face::NetdevBound::processConfig(), nfd::fw::RandomStrategy::RandomStrategy(), ndn::encoding::readDouble(), ndn::tlv::readNonNegativeInteger(), ndn::encoding::readNonNegativeIntegerAs(), ndn::tlv::readType(), ndn::tlv::readVarNumber(), ndn::RegexComponentSetMatcher::RegexComponentSetMatcher(), ndn::RegexPatternListMatcher::RegexPatternListMatcher(), ndn::RegexRepeatMatcher::RegexRepeatMatcher(), ndn::mgmt::StatusDatasetContext::reject(), ndn::security::pib::CertificateContainer::remove(), ndn::security::pib::KeyContainer::remove(), ndn::lp::Packet::remove(), ndn::io::saveBuffer(), nfd::fw::SelfLearningStrategy::SelfLearningStrategy(), ndn::net::RtnlSocket::sendDumpRequest(), ndn::net::GenlSocket::sendRequest(), ndn::Interest::setApplicationParameters(), ndn::MetaInfo::setAppMetaInfo(), nfd::CommandAuthenticator::setConfigFile(), nfd::face::FaceSystem::setConfigFile(), nfd::Forwarder::setConfigFile(), ndn::Data::setContent(), ndn::name::setConventionEncoding(), ndn::security::pib::PibMemory::setDefaultCertificateOfKey(), ndn::security::pib::PibSqlite3::setDefaultCertificateOfKey(), ndn::security::pib::PibMemory::setDefaultIdentity(), ndn::security::pib::PibSqlite3::setDefaultIdentity(), ndn::security::v2::KeyChain::setDefaultKey(), ndn::security::pib::PibMemory::setDefaultKeyOfIdentity(), ndn::security::pib::PibSqlite3::setDefaultKeyOfIdentity(), ndn::PrefixAnnouncement::setExpiration(), ndn::nfd::FaceTraits< FaceEventNotification >::setFlagBit(), ndn::nfd::ControlParameters::setFlagBit(), ndn::MetaInfo::setFreshnessPeriod(), ndn::security::v2::ValidationPolicy::setInnerPolicy(), ndn::Interest::setInterestLifetime(), ndn::KeyLocator::setKeyDigest(), ndn::Interest::setName(), nfd::face::PcapHelper::setPacketFilter(), ndn::mgmt::StatusDatasetContext::setPrefix(), nfd::fw::asf::ProbingModule::setProbingInterval(), ndn::Data::setSignatureValue(), ndn::Interest::setSignatureValue(), nfd::face::Transport::setState(), ndn::nfd::CommandOptions::setTimeout(), ndn::Face::Impl::shutdown(), ndn::security::tpm::BackEndOsx::sign(), ndn::security::transform::SignerFilter::SignerFilter(), ndn::security::SigningInfo::SigningInfo(), ndn::Block::size(), ndn::util::Sqlite3Statement::Sqlite3Statement(), ndn::security::transform::StreamSink::StreamSink(), ndn::security::transform::StreamSource::StreamSource(), nfd::ConfigFile::throwErrorOnUnknownSection(), ndn::name::Component::toByteOffset(), ndn::name::Component::toNumber(), ndn::name::Component::toNumberWithMarker(), ndn::name::Component::toSegment(), ndn::name::Component::toSequenceNumber(), ndn::detail::cfstring::toStdString(), ndn::name::Component::toTimestamp(), ndn::name::Component::toVersion(), nfd::face::UdpFactory::UdpFactory(), ndn::nfd::ControlParameters::unsetFlagBit(), ndn::util::Sha256::update(), ndn::util::SegmentFetcher::Options::validate(), ndn::nfd::ControlCommand::FieldValidator::validate(), ndn::nfd::FaceDestroyCommand::validateRequest(), ndn::nfd::CsEraseCommand::validateRequest(), ndn::nfd::StrategyChoiceUnsetCommand::validateRequest(), ndn::nfd::FaceCreateCommand::validateResponse(), ndn::nfd::FaceUpdateCommand::validateResponse(), ndn::nfd::FibAddNextHopCommand::validateResponse(), ndn::nfd::FibRemoveNextHopCommand::validateResponse(), ndn::nfd::CsEraseCommand::validateResponse(), ndn::nfd::RibRegisterCommand::validateResponse(), ndn::nfd::RibUnregisterCommand::validateResponse(), ndn::security::v2::ValidationPolicyCommandInterest::ValidationPolicyCommandInterest(), ndn::security::v2::ValidationPolicySignedInterest::ValidationPolicySignedInterest(), ndn::security::transform::VerifierFilter::VerifierFilter(), ndn::name::wantAltUri(), ndn::lp::Packet::wireDecode(), ndn::nfd::FaceEventNotification::wireDecode(), ndn::nfd::ChannelStatus::wireDecode(), ndn::nfd::StrategyChoice::wireDecode(), ndn::nfd::FaceStatus::wireDecode(), ndn::nfd::CsInfo::wireDecode(), ndn::lp::PrefixAnnouncementHeader::wireDecode(), ndn::nfd::FaceQueryFilter::wireDecode(), ndn::mgmt::ControlResponse::wireDecode(), ndn::nfd::ForwarderStatus::wireDecode(), ndn::KeyLocator::wireDecode(), ndn::lp::GeoTag::wireDecode(), ndn::lp::NackHeader::wireDecode(), ndn::nfd::NextHopRecord::wireDecode(), ndn::Link::wireDecode(), ndn::security::SafeBag::wireDecode(), ndn::lp::CachePolicy::wireDecode(), ndn::SignatureInfo::wireDecode(), ndn::nfd::ControlParameters::wireDecode(), ndn::Data::wireDecode(), ndn::security::v2::AdditionalDescription::wireDecode(), ndn::security::ValidityPeriod::wireDecode(), ndn::nfd::Route::wireDecode(), ndn::Name::wireDecode(), ndn::Interest::wireDecode(), ndn::nfd::FibEntry::wireDecode(), ndn::nfd::RibEntry::wireDecode(), ndn::lp::PrefixAnnouncementHeader::wireEncode(), ndn::KeyLocator::wireEncode(), ndn::lp::CachePolicy::wireEncode(), ndn::Data::wireEncode(), ndn::SignatureInfo::wireEncode(), ndn::Interest::wireEncode(), ndn::security::transform::Downstream::write(), ndn::ConfigFile::~ConfigFile(), and ndn::InMemoryStorage::~InMemoryStorage().

◆ NDN_THROW_ERRNO

#define NDN_THROW_ERRNO (   e)    NDN_THROW(e) << boost::errinfo_errno(errno)

◆ NDN_THROW_NESTED