proxygen
Exception.h File Reference
#include <errno.h>
#include <cstdio>
#include <stdexcept>
#include <system_error>
#include <folly/Conv.h>
#include <folly/FBString.h>
#include <folly/Likely.h>
#include <folly/Portability.h>

Go to the source code of this file.

Namespaces

 folly
 —— Concurrent Priority Queue Implementation ——
 

Macros

#define CHECK_THROW(cond, E)
 

Functions

std::system_error folly::makeSystemErrorExplicit (int err, const char *msg)
 
template<class... Args>
std::system_error folly::makeSystemErrorExplicit (int err, Args &&...args)
 
std::system_error folly::makeSystemError (const char *msg)
 
template<class... Args>
std::system_error folly::makeSystemError (Args &&...args)
 
void folly::throwSystemErrorExplicit (int err, const char *msg)
 
template<class... Args>
void folly::throwSystemErrorExplicit (int err, Args &&...args)
 
template<class... Args>
void folly::throwSystemError (Args &&...args)
 
template<class... Args>
void folly::checkPosixError (int err, Args &&...args)
 
template<class... Args>
void folly::checkKernelError (ssize_t ret, Args &&...args)
 
template<class... Args>
void folly::checkUnixError (ssize_t ret, Args &&...args)
 
template<class... Args>
void folly::checkUnixErrorExplicit (ssize_t ret, int savedErrno, Args &&...args)
 
template<class... Args>
void folly::checkFopenError (FILE *fp, Args &&...args)
 
template<class... Args>
void folly::checkFopenErrorExplicit (FILE *fp, int savedErrno, Args &&...args)
 

Macro Definition Documentation

#define CHECK_THROW (   cond,
 
)
Value:
do { \
if (!(cond)) { \
throw E("Check failed: " #cond); \
} \
} while (0)
if(FOLLY_USE_SYMBOLIZER) add_library(folly_exception_tracer_base ExceptionTracer.cpp StackTrace.cpp) apply_folly_compile_options_to_target(folly_exception_tracer_base) target_link_libraries(folly_exception_tracer_base PUBLIC folly) add_library(folly_exception_tracer ExceptionStackTraceLib.cpp ExceptionTracerLib.cpp) apply_folly_compile_options_to_target(folly_exception_tracer) target_link_libraries(folly_exception_tracer PUBLIC folly_exception_tracer_base) add_library(folly_exception_counter ExceptionCounterLib.cpp) apply_folly_compile_options_to_target(folly_exception_counter) target_link_libraries(folly_exception_counter PUBLIC folly_exception_tracer) install(FILES ExceptionAbi.h ExceptionCounterLib.h ExceptionTracer.h ExceptionTracerLib.h StackTrace.h DESTINATION $
Definition: CMakeLists.txt:1
#define throw
Definition: FBString.h:89

If cond is not true, raise an exception of type E. E must have a ctor that works with const char* (a description of the failure).

Definition at line 135 of file Exception.h.

Referenced by folly::SingletonVault::addEagerInitSingleton(), and folly::SingletonVault::registerSingleton().