C# vs Java Exception messages
-
Hi, I'm working to convert some java code to C#. I'm struggling to determine what is the equivalent C# statement to the Java "UnknownHostException". Can anyone point me in the right direction?
Regards, Dave
As far as I know, there isn't an equivalent exception. If you need an exception of this specific type, you will need to derive it yourself from ApplicationException.
Scott Dorman
Microsoft® MVP - Visual C# | MCPD President - Tampa Bay IASA [Blog][Articles][Forum Guidelines]
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
-
Hi, I'm working to convert some java code to C#. I'm struggling to determine what is the equivalent C# statement to the Java "UnknownHostException". Can anyone point me in the right direction?
Regards, Dave
just use ApplicationException as you are just advised
Vuyiswa Maseko, Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding VB.NET/SQL7/2000/2005 http://vuyiswamb.007ihost.com http://Ecadre.007ihost.com vuyiswam@tshwane.gov.za