CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
publish::EPublish Class Reference

#include <except.h>

Inheritance diagram for publish::EPublish:
Collaboration diagram for publish::EPublish:

Public Types

enum  EFailures {
  kFailUnspecified = 0, kFailInput, kFailInvocation, kFailPermission,
  kFailTransactionState, kFailGatewayKey, kFailLeaseHttp, kFailLeaseBody,
  kFailLeaseBusy, kFailLeaseNoEntry, kFailLeaseNoDir, kFailRepositoryNotFound,
  kFailRepositoryType, kFailLayoutRevision, kFailWhitelistExpired, kFailMissingDependency
}
 

Public Member Functions

 EPublish (const std::string &what, EFailures f=kFailUnspecified)
 
virtual ~EPublish () throw ()
 
EFailures failure () const
 
std::string msg () const
 

Static Private Member Functions

static std::string GetStacktrace ()
 

Private Attributes

EFailures failure_
 
std::string msg_
 

Static Private Attributes

static const unsigned kMaxBacktrace = 64
 

Detailed Description

Definition at line 13 of file except.h.

Member Enumeration Documentation

Well-known exceptions that are usually caught and handled

Enumerator
kFailUnspecified 
kFailInput 
kFailInvocation 
kFailPermission 
kFailTransactionState 
kFailGatewayKey 
kFailLeaseHttp 
kFailLeaseBody 
kFailLeaseBusy 
kFailLeaseNoEntry 
kFailLeaseNoDir 
kFailRepositoryNotFound 
kFailRepositoryType 
kFailLayoutRevision 
kFailWhitelistExpired 
kFailMissingDependency 

Definition at line 18 of file except.h.

Constructor & Destructor Documentation

publish::EPublish::EPublish ( const std::string &  what,
EFailures  f = kFailUnspecified 
)
inlineexplicit

Definition at line 37 of file except.h.

publish::EPublish::~EPublish ( )
throw (
)
virtual

This file is part of the CernVM File System.

Definition at line 11 of file except.cc.

Member Function Documentation

EFailures publish::EPublish::failure ( ) const
inline

Definition at line 45 of file except.h.

Referenced by publish::CmdAbort::Main(), publish::CmdTransaction::Main(), main(), and publish::TransactionRetry().

Here is the caller graph for this function:

std::string publish::EPublish::GetStacktrace ( )
staticprivate

Definition at line 13 of file except.cc.

std::string publish::EPublish::msg ( ) const
inline

Definition at line 46 of file except.h.

Referenced by publish::CmdAbort::Main(), publish::CmdTransaction::Main(), and main().

Here is the caller graph for this function:

Member Data Documentation

EFailures publish::EPublish::failure_
private

Definition at line 49 of file except.h.

Referenced by failure().

const unsigned publish::EPublish::kMaxBacktrace = 64
staticprivate

Maximum number of frames in the stack trace

Definition at line 55 of file except.h.

std::string publish::EPublish::msg_
private

Definition at line 50 of file except.h.

Referenced by msg().


The documentation for this class was generated from the following files: