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

◆ socket_exception_

#define socket_exception_ (   ...)

#include <xtd.core/include/xtd/net/sockets/socket_exception.h>

Helper on xtd::net::sockets::socket_exception to call it with current stack frame information.

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