|
-
September 2nd, 2019, 01:41 AM
#4
Re: How to use exception handling?
 Originally Posted by prako2
I have a code which gets public IP address and one segment of code causes crash if not connected to internet. So I'm trying to apply exception handling, but I don't really understand how it works in this case, can you help me?
...
Does this code compile?
I don't see where your get_Website function throws the exception you are trying to catch...
Victor Nijegorodov
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|