Discussion:
Error handling
(too old to reply)
Sean Safarpour
2004-01-24 20:46:18 UTC
Permalink
Hello everyone,

It seems like some people think that error handling is a special case that
was not mentioned in the lab 1. Error handling is part of programming and
should always be done. A program that runs correctly under "the expected"
input but fails to handle errors under "unexpected" input is in fact not a
functionally correct program. As an introductory class, we are trying to
teach you the proper way to code and this includes error handling.

Of course, we don't expect you to handle ridiculous errors such as memory
failures and so on. However, expecting an invalid input form a user, is
the most basic type of error handling.

Now, about specific labs:
We have mentioned that "a basic amount of error handling is expected" for
every lab. The cases mentioned in some of the previous postings fall into
this category. Any input/parameters/conditions that are unexpected fall
within this category and should be handled appropriately.

Hope that helps,

Sean Safarpour
Head TA
***@eecg.utoronto.ca
Steve C, C = Cool
2004-01-25 02:32:46 UTC
Permalink
Phew,

For awhile there, I was trying to implement the error handling of when the
user accidentally busts up his keyboard and he has no method of input.
Post by Sean Safarpour
Hello everyone,
It seems like some people think that error handling is a special case that
was not mentioned in the lab 1. Error handling is part of programming and
should always be done. A program that runs correctly under "the expected"
input but fails to handle errors under "unexpected" input is in fact not a
functionally correct program. As an introductory class, we are trying to
teach you the proper way to code and this includes error handling.
Of course, we don't expect you to handle ridiculous errors such as memory
failures and so on. However, expecting an invalid input form a user, is
the most basic type of error handling.
We have mentioned that "a basic amount of error handling is expected" for
every lab. The cases mentioned in some of the previous postings fall into
this category. Any input/parameters/conditions that are unexpected fall
within this category and should be handled appropriately.
Hope that helps,
Sean Safarpour
Head TA
Loading...