Click here to Skip to main content
15,891,431 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Irony Pin
Marc Clifton23-Jul-16 15:12
mvaMarc Clifton23-Jul-16 15:12 
GeneralRe: Irony Pin
Mycroft Holmes23-Jul-16 22:38
professionalMycroft Holmes23-Jul-16 22:38 
GeneralRe: Irony Pin
Marc Clifton24-Jul-16 2:30
mvaMarc Clifton24-Jul-16 2:30 
GeneralRe: Irony Pin
Sander Rossel23-Jul-16 23:21
professionalSander Rossel23-Jul-16 23:21 
GeneralRe: Irony Pin
Kiriander24-Jul-16 21:57
Kiriander24-Jul-16 21:57 
GeneralRe: Irony Pin
Gary Wheeler25-Jul-16 1:46
Gary Wheeler25-Jul-16 1:46 
GeneralRe: Irony Pin
englebart25-Jul-16 2:34
professionalenglebart25-Jul-16 2:34 
GeneralRe: Irony Pin
agolddog25-Jul-16 3:37
agolddog25-Jul-16 3:37 
Marc,

In our little system we have email sending configured as a Boolean. Down when we're instantiating the class that sends the email, we look at that. If false, we instantiate an implementation of the class which writes to a local file instead of sending the email.

So, we can check content etc in development without the risk of "oops that was a real email address."

I wonder if something similar could be wired up for your error condition. Once you're in the catch block, fire off the email send, but pass the magic param which says "write to log/file/send up a flare/whatever."
GeneralRe: Irony Pin
Dale Barnard25-Jul-16 6:10
Dale Barnard25-Jul-16 6:10 
GeneralRe: Irony Pin
milo-xml25-Jul-16 7:49
professionalmilo-xml25-Jul-16 7:49 
GeneralAlcohol causes cancer? Pin
Brisingr Aerowing23-Jul-16 3:34
professionalBrisingr Aerowing23-Jul-16 3:34 
GeneralRe: Alcohol causes cancer? Pin
PIEBALDconsult23-Jul-16 3:37
mvePIEBALDconsult23-Jul-16 3:37 
GeneralRe: Alcohol causes cancer? Pin
CDP180223-Jul-16 4:16
CDP180223-Jul-16 4:16 
GeneralRe: Alcohol causes cancer? Pin
glennPattonWork323-Jul-16 5:31
professionalglennPattonWork323-Jul-16 5:31 
GeneralRe: Alcohol causes cancer? Pin
Slacker00724-Jul-16 1:23
professionalSlacker00724-Jul-16 1:23 
GeneralRe: Alcohol causes cancer? Pin
Rob Grainger25-Jul-16 4:17
Rob Grainger25-Jul-16 4:17 
GeneralRe: Alcohol causes cancer? Pin
PIEBALDconsult26-Jul-16 14:08
mvePIEBALDconsult26-Jul-16 14:08 
GeneralRe: Alcohol causes cancer? Pin
Garth J Lancaster23-Jul-16 3:49
professionalGarth J Lancaster23-Jul-16 3:49 
GeneralRe: Alcohol causes cancer? Pin
R. Giskard Reventlov23-Jul-16 4:55
R. Giskard Reventlov23-Jul-16 4:55 
GeneralRe: Alcohol causes cancer? Pin
KarstenK23-Jul-16 6:34
mveKarstenK23-Jul-16 6:34 
GeneralRe: Alcohol causes cancer? Pin
Mark_Wallace23-Jul-16 6:47
Mark_Wallace23-Jul-16 6:47 
GeneralRe: Alcohol causes cancer? Pin
Ron Anders23-Jul-16 6:47
Ron Anders23-Jul-16 6:47 
JokeRe: Alcohol causes cancer? Pin
Afzaal Ahmad Zeeshan23-Jul-16 9:02
professionalAfzaal Ahmad Zeeshan23-Jul-16 9:02 
GeneralRe: Alcohol causes cancer? Pin
ZurdoDev23-Jul-16 17:46
professionalZurdoDev23-Jul-16 17:46 
GeneralRe: Alcohol causes cancer? Pin
Joe Woodbury25-Jul-16 7:02
professionalJoe Woodbury25-Jul-16 7:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.