lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
Defines
Exception macros

Defines

#define LEAN_THROW_ERROR()   ::lean::logging::throw_error(LEAN_SOURCE_STRING)
 Throws a runtime_error exception.
#define LEAN_THROW_ERROR_MSG(msg)   ::lean::logging::throw_error(LEAN_SOURCE_STRING, msg)
 Throws a runtime_error exception.
#define LEAN_THROW_ERROR_CTX(msg, ctx)   ::lean::logging::throw_error(LEAN_SOURCE_STRING, msg, ctx)
 Throws a runtime_error exception.
#define LEAN_THROW_ERROR_XMSG(msg, orig)   ::lean::logging::throw_error_ex(LEAN_SOURCE_STRING, msg, orig)
 Throws a runtime_error exception.
#define LEAN_THROW_ERROR_XCTX(msg, orig, ctx)   ::lean::logging::throw_error_ex(LEAN_SOURCE_STRING, msg, orig, ctx)
 Throws a runtime_error exception.
#define LEAN_THROW_ERROR_ANY(msg)   LEAN_THROW_ERROR_MSG(static_cast<::std::ostringstream&>(::std::ostringstream() << msg).str().c_str())
 Throws a runtime_error exception.
#define LEAN_THROW_INVALID()   ::lean::logging::throw_invalid(LEAN_SOURCE_STRING)
 Throws an invalid_argument exception.
#define LEAN_THROW_INVALID_MSG(msg)   ::lean::logging::throw_invalid(LEAN_SOURCE_STRING, msg)
 Throws an invalid_argument exception.
#define LEAN_THROW_INVALID_ANY(msg)   LEAN_THROW_INVALID_MSG(static_cast<::std::ostringstream&>(::std::ostringstream() << msg).str().c_str())
 Throws an invalid_argument exception.
#define LEAN_THROW_BAD_ALLOC()   ::lean::logging::throw_bad_alloc(LEAN_SOURCE_STRING)
 Throws a bad_alloc exception.
#define LEAN_THROW_BAD_ALLOC_SIZE(size)   ::lean::logging::throw_bad_alloc(LEAN_SOURCE_STRING, size)
 Throws a bad_alloc exception.
#define LEAN_THROW_WIN_ERROR()   ::lean::logging::throw_last_win_error(__FILE__ " (" LEAN_QUOTE_VALUE(__LINE__) ")")
 Throws a runtime_error exception.
#define LEAN_THROW_WIN_ERROR_MSG(msg)   ::lean::logging::throw_last_win_error(__FILE__ " (" LEAN_QUOTE_VALUE(__LINE__) ")", msg)
 Throws a runtime_error exception.
#define LEAN_THROW_WIN_ERROR_CTX(msg, ctx)   ::lean::logging::throw_last_win_error(__FILE__ " (" LEAN_QUOTE_VALUE(__LINE__) ")", msg, ctx)
 Throws a runtime_error exception.
#define LEAN_THROW_WIN_ERROR_ANY(msg)   LEAN_THROW_WIN_ERROR_MSG(static_cast<::std::ostringstream&>(::std::ostringstream() << msg).str().c_str())
 Throws a runtime_error exception.

Detailed Description

See also:
lean::logging