Re:Isaacs: try/catch is an anti-pattern
by je42 on Monday November 14, 2011 @01:24PM
(#3235042)
I dont understand this. According to some believe exceptions should be used in an exceptional context.
Can anybody define what exceptional is?
I use exception to get the context in which the error happend. Call stack, variables, stuff like that. I can log it, i can give good error message to the user. I never think about if an error is exceptional.
I use exception to get the context in which the error happend. Call stack, variables, stuff like that. I can log it, i can give good error message to the user. I never think about if an error is exceptional.