error handling - Terminology - exception -
in programming, exceptions errors (divide zero, access violation, ...)?
if not, can provide examples of exceptions not errors?
thanks.
exceptions used manage errors, make error handling easier aren't errors.
every unordinary situation require separate code path candidate exception.
although use of exceptions control flow can confusing (it depends largely on language), can used break out of loop.
sometimes can use exception check if string contains value or if file exists.
you can use exceptions terminate threads collaboratively.
you should consider different languages have different conventions when exceptions should thrown (e.g. python > c++ > objective c).
objective c an extreme:
when you’re writing code objective-c, exceptions used solely programmer errors
(ios developer library - dealing errors)
but isn't norm.
Comments
Post a Comment