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

◆ length_exception_

#define length_exception_ (   ...)

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

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

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