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

◆ domain_exception_

#define domain_exception_ (   ...)

#include <xtd.core/include/xtd/domain_exception.h>

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

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