CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
exception.h File Reference
#include <cassert>
#include <cstdarg>
#include <stdexcept>
#include <string>
#include "util/export.h"
#include "util/logging.h"
Include dependency graph for exception.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ECvmfsException
 

Macros

#define CVMFS_S1(x)   #x
 
#define CVMFS_S2(x)   CVMFS_S1(x)
 
#define CVMFS_SOURCE_LOCATION   "PANIC: " __FILE__ " : " CVMFS_S2(__LINE__)
 
#define PANIC(...)   Panic(CVMFS_SOURCE_LOCATION, kLogCvmfs, __VA_ARGS__);
 

Functions

CVMFS_EXPORT void Panic (const char *coordinates, const LogSource source, const int mask, const char *format,...)
 
CVMFS_EXPORT void Panic (const char *coordinates, const LogSource source, const char *nul)
 
static bool AssertOrLog (int t, const LogSource, const int, const char *,...)
 

Macro Definition Documentation

#define CVMFS_S1 (   x)    #x

Definition at line 26 of file exception.h.

#define CVMFS_S2 (   x)    CVMFS_S1(x)

Definition at line 27 of file exception.h.

#define CVMFS_SOURCE_LOCATION   "PANIC: " __FILE__ " : " CVMFS_S2(__LINE__)

Definition at line 28 of file exception.h.

#define PANIC (   ...)    Panic(CVMFS_SOURCE_LOCATION, kLogCvmfs, __VA_ARGS__);

Definition at line 29 of file exception.h.

Referenced by AbortIfHardlinked(), publish::SyncMediator::Add(), catalog::WritableCatalogManager::AddChunkedFile(), catalog::WritableCatalogManager::AddDirectory(), publish::SyncMediator::AddDirectory(), catalog::WritableCatalogManager::AddFile(), publish::SyncMediator::AddFile(), catalog::WritableCatalogManager::AddHardlinkGroup(), publish::SyncMediator::AddLocalHardlinkGroups(), FileBackedBuffer::Append(), anonymous_namespace{pack.cc}::AppendItemToHeader(), catalog::DeltaCounters::ApplyDelta(), dns::CallbackCares(), s3fanout::S3FanoutManager::CallbackCurlSocket(), catalog::WritableCatalogManager::CatalogUploadCallback(), catalog::WritableCatalogManager::CatalogUploadSerializedCallback(), FuseRemounter::Check(), publish::SyncItem::CheckCatalogMarker(), publish::SyncUnionOverlayfs::CheckForBrokenHardlink(), catalog::WritableCatalogManager::Clone(), catalog::WritableCatalogManager::CloneTree(), glue::PageCacheTracker::Close(), FileBackedBuffer::Commit(), catalog::WritableCatalogManager::CopyCatalogToLocalCache(), catalog::SimpleCatalogManager::CopyCatalogToTempFile(), NfsMapsSqlite::Create(), cipher::Cipher::Create(), dns::CaresResolver::Create(), CreateFile(), catalog::WritableCatalogManager::CreateNestedCatalog(), PosixQuotaManager::CreateShared(), cvmfs::cvmfs_init(), CatalogDiffTool< RoCatalogMgr >::DiffRec(), FileSystemTraversal< T >::DoRecursion(), swissknife::CatalogTraversalParallel< ObjectFetcherT >::DoTraverse(), publish::SyncMediator::EnsureAllowed(), swissknife::CommandCheck::FetchPath(), CacheTransport::FillMsgHash(), shash::Final(), catalog::WritableCatalogManager::FinalizeCatalog(), NfsMapsLeveldb::FindInode(), Watchdog::Fork(), JsonStringGenerator::JsonEntry::Format(), ItemAllocator::Free(), FuseMain(), upload::GatewayUploader::GatewayUploader(), s3fanout::S3FanoutManager::GetContentType(), shash::GetContextSize(), publish::SyncItem::GetGenericFiletype(), MagicXattrManager::GetListString(), NfsMapsSqlite::GetPath(), NfsMapsLeveldb::GetPath(), s3fanout::S3FanoutManager::GetRequestString(), publish::SyncItemNative::GetScratchFiletype(), BaseMagicXattr::GetValue(), OptionsManager::GetValueOrDie(), receiver::Reactor::HandleCheckToken(), receiver::Reactor::HandleCommit(), receiver::Reactor::HandleGenerateToken(), receiver::Reactor::HandleGetTokenId(), receiver::Reactor::HandleRequest(), receiver::Reactor::HandleSubmitPayload(), shash::Hmac256(), shash::Init(), download::DownloadManager::InitializeRequest(), s3fanout::S3FanoutManager::InitializeRequest(), catalog::WritableCatalogManager::IsTransitionPoint(), catalog::SimpleCatalogManager::LoadCatalogByHash(), PosixQuotaManager::MainCommandServer(), CachePlugin::MainProcessRequests(), ExternalCacheManager::MainRead(), FuseRemounter::MainRemountTrigger(), loader::loader_talk::MainTalk(), perf::TelemetryAggregator::MainTelemetry(), s3fanout::S3FanoutManager::MainUpload(), quota::MainWatchdogListener(), Watchdog::MainWatchdogListener(), swissknife::MainWorker(), Pipe< kPipeWatchdog >::MakePipe(), PosixQuotaManager::ManagedReadHalfPipe(), s3fanout::S3FanoutManager::MkPayloadHash(), TaskWrite::OnBlockComplete(), TaskWrite::OnChunkComplete(), SpecTree::Open(), glue::PageCacheTracker::Open(), StatisticsDatabase::OpenStandardDB(), SpecTree::Parse(), zlib::ParseCompressionAlgorithm(), PosixQuotaManager::ParseDirectories(), loader::ParseFuseOptions(), BashOptionsManager::ParsePath(), JsonDocument::PrintValue(), TaskHash::Process(), TaskWrite::Process(), TaskChunk::Process(), TaskRead::Process(), TaskScrubbingCallback::Process(), upload::TaskUpload::Process(), publish::SyncUnionTarball::ProcessArchiveEntry(), PosixQuotaManager::ProcessCommandBunch(), publish::SyncMediator::PublishFilesCallback(), publish::SyncMediator::PublishHardlinksCallback(), swissknife::CommandPull::Pull(), glue::InodeReferences::Put(), NfsMapsLeveldb::PutInode2Path(), SqliteMemoryManager::PutLookasideBuffer(), SqliteMemoryManager::PutMemory(), NfsMapsLeveldb::PutPath2Inode(), Pipe< kPipeWatchdog >::ReadPipe(), MagicXattrManager::Register(), PosixQuotaManager::RegisterBackChannel(), catalog::WritableCatalogManager::RemoveDirectory(), catalog::WritableCatalogManager::RemoveFile(), catalog::WritableCatalogManager::RemoveNestedCatalog(), receiver::CatalogMergeTool< RwCatalogMgr, RoCatalogMgr >::ReportModification(), swissknife::RootChainWalker::ReturnOrAbort(), SigningTool::Run(), upload::S3Uploader::S3Uploader(), FileBackedBuffer::SaveToFile(), CacheTransport::SendData(), CacheTransport::SendNonBlocking(), Watchdog::SetSignalHandlers(), dns::HostfileResolver::SetSystemSearchDomains(), shash::Sha256File(), shash::Sha256Mem(), catalog::WritableCatalogManager::ShrinkHardlinkGroup(), catalog::SimpleCatalogManager::SimpleCatalogManager(), catalog::WritableCatalogManager::SnapshotCatalogsSerialized(), Watchdog::Spawn(), TubeConsumerGroup< FileItem >::Spawn(), PosixQuotaManager::Spawn(), swissknife::anonymous_namespace{swissknife_pull.cc}::SpoolerOnUpload(), NfsMapsLeveldb::ForkAwareEnv::StartThread(), swissknife::Store(), catalog::WritableCatalogManager::SwapNestedCatalog(), catalog::WritableCatalogManager::TouchDirectory(), publish::SyncUnionTarball::Traverse(), CacheTransport::Frame::UnwrapMsg(), shash::Update(), upload::SessionContext::UploadLoop(), catalog::WritableCatalog::VacuumDatabaseIfNecessary(), s3fanout::S3FanoutManager::VerifyAndFinalize(), download::DownloadManager::VerifyAndFinalize(), glue::InodeTracker::VfsPutRaii::VfsPut(), WaitForChild(), dns::CaresResolver::WaitOnCares(), CacheTransport::Frame::WrapMsg(), Pipe< kPipeWatchdog >::WritePipe(), and FileBackedBuffer::~FileBackedBuffer().

Function Documentation

static bool AssertOrLog ( int  t,
const LogSource  ,
const int  ,
const char *  ,
  ... 
)
inlinestatic

Definition at line 61 of file exception.h.

Referenced by glue::PageCacheTracker::Close(), cvmfs::cvmfs_getxattr(), cvmfs::cvmfs_listxattr(), cvmfs::GetDirentForInode(), and cvmfs::GetPathForInode().

Here is the call graph for this function:

Here is the caller graph for this function:

CVMFS_EXPORT void Panic ( const char *  coordinates,
const LogSource  source,
const int  mask,
const char *  format,
  ... 
)

This file is part of the CernVM File System.

Definition at line 19 of file exception.cc.

Referenced by Panic().

Here is the call graph for this function:

Here is the caller graph for this function:

CVMFS_EXPORT void Panic ( const char *  coordinates,
const LogSource  source,
const char *  nul 
)

Definition at line 52 of file exception.cc.

Here is the call graph for this function: