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

◆ arithmetic_exception_

#define arithmetic_exception_ (   ...)

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

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

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