Crow  0.0.4

◆ capture_exception()

void nlohmann::crow::capture_exception ( const std::exception &  exception,
const json &  context = nullptr,
bool  asynchronous = true,
bool  handled = true 
)
Parameters
[in]exceptionthe passed exception
[in]contextan optional context object
[in]asynchronouswhether the message should be sent asynchronously
[in]handledwhether the exception was handled and only reported
Exceptions
std::invalid_argumentif context object contains invalid key
Since
0.0.1, context added with 0.0.3

Definition at line 158 of file crow.cpp.