Error-handling Procedure

In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?

Questions by veraps

Showing Answers 1 - 1 of 1 Answers

lavanyats

  • Jul 27th, 2008
 

When there is a new error to be detected, the source code of the exception handling function must be updated - and seperately compiled. Also we have the over head of sending an additional parameter. The best way to deal with exceptions is to use inbuilt exception handling mechanism - and throw custom exceptions.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions