Replies: 1 comment
-
I think your style is better. The more errors are treated, the more accurate the message. Whether this is now a warning or critical I do not know yet exactly. I also need to rework the IPv6 function because it's not working properly. Improvements also gladly as PR :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
So I am just asking a small question regarding coding style. Please let me know if my question is fine in this discussion or I should post it somewhere else.
In the source code:
My usual style:
Normally I will try to handle as much exception as possible. In this case, as I am expecting IPv6 address to be
null
(or not enabled by user) and handle that, should I just put it in the try block to assign it correctly, and let the code catch other Exception? Or there won't be other exceptions that are more serious than null IP address?I do not set IPv6 on my local network, so it's null, and when debugging, the program threw the Exception into my face 3 times in a row...
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions