5 #ifndef CVMFS_UTIL_EXCEPTION_H_
6 #define CVMFS_UTIL_EXCEPTION_H_
16 #ifdef CVMFS_NAMESPACE_GUARD
17 namespace CVMFS_NAMESPACE_GUARD {
23 : std::runtime_error(what_arg) {}
26 #define CVMFS_S1(x) #x
27 #define CVMFS_S2(x) CVMFS_S1(x)
28 #define CVMFS_SOURCE_LOCATION "PANIC: " __FILE__ " : " CVMFS_S2(__LINE__)
29 #define PANIC(...) Panic(CVMFS_SOURCE_LOCATION, kLogCvmfs, __VA_ARGS__);
39 void Panic(const
char *coordinates, const
LogSource source, const
char *nul);
46 #ifdef CVMFS_SUPPRESS_ASSERTS
50 const char *log_msg_format, ...) {
52 va_list variadic_list;
53 va_start(variadic_list, log_msg_format);
54 vLogCvmfs(log_source, log_mask, log_msg_format, variadic_list);
55 va_end(variadic_list);
70 #ifdef CVMFS_NAMESPACE_GUARD
74 #endif // CVMFS_UTIL_EXCEPTION_H_
CVMFS_EXPORT void vLogCvmfs(const LogSource source, const int mask, const char *format, va_list variadic_list)
assert((mem||(size==0))&&"Out Of Memory")
void Panic(const char *coordinates, const LogSource source, const int mask, const char *format,...)
struct cvmcache_object_info __attribute__
static bool AssertOrLog(int t, const LogSource, const int, const char *,...)
const int const char * format
ECvmfsException(const std::string &what_arg)