On 3/8/21 8:05 AM, dog2002 wrote:
I want to call functions according to an exception. In C there is the
errno function. But if I use try...catch, it shows a trace or a message.
How do I check an exception type? For example:
std.socket.SocketOSException@std/socket.d(2857): Unable to connect
so
https://github.com/dlang/phobos/blob/master/std/socket.d#L190
Might be of some use to you
I want to call functions according to an exception. In C there is
the errno function. But if I use try...catch, it shows a trace or
a message. How do I check an exception type? For example:
std.socket.SocketOSException@std/socket.d(2857): Unable to
connect socket: Connection refused
-