Re: Exception Handling - Good Practice

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Sep 4, 4:12 am, "CJM" <cjmnew...@xxxxxxxxxxxxxxxx> wrote:
Thanks for the answers guys.

It's worth pointing out that in this particular scenario, the application is
reading email addresses from a DB so there is no opportunity for interaction
with a user. I'm just going to ignore an address if it isn't valid. I do
have some Regex code to parse email addresses, so I'm going to handle it
in-code; if the email is malformed, I'll tell it to just move on to the next
one...

CJM

My opinion would then be to wrap the Regex checks in a seperate bool
function. Then after pulling the possible addresses from the DB you
could use a very simple if...then block to filter the addresses.

Thanks,

Seth Rowe

.



Relevant Pages

  • Re: Exception Handling - Good Practice
    ... It's worth pointing out that in this particular scenario, ... reading email addresses from a DB so there is no opportunity for interaction ... CJM ...
    (microsoft.public.dotnet.languages.vb)
  • Re: label inside for-loop
    ... the immediate fix is to use a null statement. ... It is worth pointing out that what is "deprecated" here is actually ... a GNUC extension -- the syntax above has always been invalid in ... Reading email is like searching for food in the garbage, ...
    (comp.lang.c)