Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find a list of SocketErrorCode and NativeErrorCode thrown by SocketException? [closed]

A SocketException has a SocketErrorCode and NativeErrorCode. I would like to find a list where these codes (or the common onces) are listed so I can respond in proper fasion.

Does anybody know where to find such a list?

like image 439
TimothyP Avatar asked Dec 08 '08 22:12

TimothyP


People also ask

Under what circumstances would a SocketException be thrown?

A SocketException is thrown by the Socket and Dns classes when an error occurs with the network. The parameterless constructor for the SocketException class sets the ErrorCode property to the last operating system socket error that occurred.

How do you handle SocketException?

The SocketException is an exception in Java that is thrown to indicate that an error was encountered while creating or accessing a Socket. Since the SocketException is a checked exception, it either needs to be thrown or surrounded by a try-catch block in code.


1 Answers

MSDN? SocketError; or from the native ErrorCode, the MSDN page states: "For more information about socket error codes, see the Windows Sockets version 2 API error code documentation in MSDN.".

A few searches shows this here.

like image 170
Marc Gravell Avatar answered Oct 22 '22 19:10

Marc Gravell