As I said...
The Python example does pretty much the same thing.
If you leave off the exception handling, it closes the socket, prints a simple error message, and exits with an error code. There's nothing magical in the Ruby example. :-)
So again, the examples being given here DO have a more custom error message. Which was all I was asking for. The point of the examples being good, explicit (as in, you can expect errors here, etc.) networking code suitable for showing to a beginner.
So, thanks for the example. :-)
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."
Edited by
admin
Sept. 19, 2005, 08:53:23 PM EDT
As I said...
The Python example does pretty much the same thing.
If you leave off the exception handling, it closes the socket, prints a simple error message, and exits with an error code. There's nothing magical in the Ruby example. :-)
So again, the examples being given here DO have a more custom error message. Which was all I was asking for.
So, thanks for the example. :-)
Regards,
-scott anderson
"Welcome to Rivendell, Mr. Anderson..."