xtd 0.2.0
Loading...
Searching...
No Matches

◆ thread_state_exception_

#define thread_state_exception_ (   ...)

#include <xtd.core/include/xtd/threading/thread_state_exception.h>

Helper on xtd::thread_state_exception to call it with current stack frame information.

Library
xtd.core
Remarks
Is equivalent to xtd::thread_state_exception {{any argument}, csf_}
void my_func() {
if (invalid_info) throw thread_state_exception_(); // same as : throw thread_state_exception {csf_};
if (invalid_value) throw thread_state_exception_("Bad value"); // same as : throw thread_state_exception {"Bad value", csf_};
...
}
#define thread_state_exception_(...)
Helper on xtd::thread_state_exception to call it with current stack frame information.
Definition thread_state_exception.h:109