Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
common.hpp File Reference
#include <fc/utility.hpp>
#include <tuple>
#include <sysio/trace_api/data_log.hpp>
Include dependency graph for common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sysio::trace_api::yield_exception
 
class  sysio::trace_api::bad_data_exception
 

Namespaces

namespace  sysio
 
namespace  sysio::trace_api
 

Macros

#define MAKE_EXCEPTION_WITH_CONTEXT(eptr)
 

Typedefs

using sysio::trace_api::yield_function = fc::optional_delegate<void()>
 
using sysio::trace_api::exception_with_context = std::tuple<const std::exception_ptr&, char const *, uint64_t, char const *>
 
using sysio::trace_api::exception_handler = fc::optional_delegate<void(const exception_with_context&)>
 
using sysio::trace_api::log_handler = fc::optional_delegate<void(const std::string&)>
 
using sysio::trace_api::get_block_t = std::optional<std::tuple<data_log_entry, bool>>
 
using sysio::trace_api::get_block_n = std::optional<uint32_t>
 

Macro Definition Documentation

◆ MAKE_EXCEPTION_WITH_CONTEXT

#define MAKE_EXCEPTION_WITH_CONTEXT ( eptr)
Value:
(sysio::trace_api::exception_with_context((eptr), __FILE__, __LINE__, __func__))
#define __func__
std::tuple< const std::exception_ptr &, char const *, uint64_t, char const * > exception_with_context
Definition common.hpp:40

Normal use case: exception_handler except_handler; except_handler( MAKE_EXCEPTION_WITH_CONTEXT( std::current_exception() ) );

Definition at line 56 of file common.hpp.

56#define MAKE_EXCEPTION_WITH_CONTEXT(eptr) \
57 (sysio::trace_api::exception_with_context((eptr), __FILE__, __LINE__, __func__))