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

◆ argument_exception_

#define argument_exception_ (   ...)

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

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

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