We have a Try/Catch block of code in our web application to trap a certain exception. What we want to do with this exception depends on the current time. If it is between 4:30PM and 3:00AM we will want to send an email, otherwise we will throw the exception. What is the best way to accomplish this?
Try
'Yada
Catch ex as WebException
Dim Time As DateTime = DateTime.Now
'Not sure where to go from here!
End Try