CernVM-FS  2.11.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::runtime_error msg_holder_
 

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
std::string publish::EPublish::GetStacktrace ( )
staticprivate

Definition at line 13 of file except.cc.

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

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 57 of file except.h.

std::runtime_error publish::EPublish::msg_holder_
private

Definition at line 52 of file except.h.

Referenced by msg().


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