Click here to Skip to main content
15,881,938 members

Survey Results

Which of the following issues are best handled using Exceptions?

Survey period: 9 Feb 2015 to 16 Feb 2015

Exception handling provides a way to deal with any unexpected or exceptional situations. Define "unexpected".

OptionVotes% 
My bad code (null reference, divide by zero, index out of range etc)53645.85
Errors due to failed network connection70260.05
External Resource (eg webservice) not found or available66556.89
Backend server fails (eg internal database or cache server goes down)70560.31
Local resource access fails (eg can't open a file)63254.06
Timeout (database, file access, network connection)65556.03
Invalid parameter values36731.39
Invalid data supplied by the user30225.83
Respondents were allowed to choose more than one answer; totals may not add up to 100%



 
GeneralAll errors are unexpected PinPopular
CDP18029-Feb-15 0:30
CDP18029-Feb-15 0:30 
GeneralAll but user input, but not all the time PinPopular
Rob Grainger8-Feb-15 23:36
Rob Grainger8-Feb-15 23:36 
GeneralDepends on the application Pin
RugbyLeague8-Feb-15 21:48
RugbyLeague8-Feb-15 21:48 
GeneralI always use exceptions... PinPopular
AlexCode8-Feb-15 21:32
professionalAlexCode8-Feb-15 21:32 
GeneralRe: I always use exceptions... Pin
Jan Holst Jensen210-Feb-15 1:42
Jan Holst Jensen210-Feb-15 1:42 
GeneralBit of a vague questions this week... PinPopular
OriginalGriff8-Feb-15 20:22
mveOriginalGriff8-Feb-15 20:22 
GeneralRe: Bit of a vague questions this week... Pin
Nicholas Marty9-Feb-15 1:15
professionalNicholas Marty9-Feb-15 1:15 
GeneralRe: Bit of a vague questions this week... Pin
Dan Neely9-Feb-15 3:18
Dan Neely9-Feb-15 3:18 
Nicholas Marty wrote:
I'm also confused about what "handled with exceptions" means. So I just checked all of them.


I ended up checking all of them except User Input Validation. Invalid content there should always be expected, never exceptional, meaning that you should always check for it pre-emptively.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius

Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt

GeneralRe: Bit of a vague questions this week... Pin
Nicholas Marty9-Feb-15 3:37
professionalNicholas Marty9-Feb-15 3:37 

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.