libjmmcg
release_579_6_g8cffd
A C++ library containing an eclectic mix of useful, advanced components.
|
This is the default trait. More...
#include <syscall_wrapper.hpp>
Public Types | |
using | base_t = traits_base< FailureTraits, Args... > |
![]() | |
using | exception_t = syscall::exception_t |
using | failure_traits = FailureTraits |
using | fn_ret_code = typename failure_traits::fn_ret_code |
using | failure_detection = typename failure_traits::failure_detection |
using | failure_code = typename failure_traits::failure_code |
Static Public Member Functions | |
static auto | select_error (int err, char const *file_name, unsigned line_num, char const *fn_name, tchar const *const rev_info, tchar const *const err_msg, fn_ret_code(*fn)(Args...), Args ...args) |
The way an error is identified and operated upon. More... | |
![]() | |
static auto | report (fn_ret_code ret, HandleError &&handle_error) noexcept(false) |
This operation is run to either return the result of the wrapped function or execute handle_error(), which should throw an exception. (Otherwise what is the point of this wrapper?) More... | |
static void | report_error (int err, char const *file_name, unsigned line_num, char const *fn_name, tchar const *const rev_info, tchar const *const err_msg, fn_ret_code(*fn)(Args...), Args ...args) noexcept(false) NEVER_INLINE |
How the error should be reported to the client, in this case a crt_exception with suitable details is thrown. More... | |
This is the default trait.
Definition at line 171 of file syscall_wrapper.hpp.
using jmmcg::LIBJMMCG_VER_NAMESPACE::syscall::simple_report_traits< FailureTraits, Args >::base_t = traits_base<FailureTraits, Args...> |
Definition at line 172 of file syscall_wrapper.hpp.
|
inlinestatic |
The way an error is identified and operated upon.
Definition at line 47 of file syscall_wrapper_impl.hpp.