When must a function throw an exception, Software Engineering

Assignment Help:

When must a function throw an exception?

A function must throw an exception when it's not able to fulfil its promise.

As soon as function detects a problem which prevents it from fulfilling its promise, it must throw an exception. If function is able to handle problem, recover itself and deliver promise, the exception shouldn't be thrown.

If an event occurs very frequently then exception handling isn't the best way to deal with it. It requires proper fixation.

 


Related Discussions:- When must a function throw an exception

Explain test data generators - testing tools, Q. Explain Test data generato...

Q. Explain Test data generators - testing tools? Test data generators: this is a hard one and at lease for the present is one for which no general solution exists. One of the

Explain norman''s seven stages of action, Question: (a) Explain, using...

Question: (a) Explain, using an example, Norman's Seven Stages of Action. (b) You are working for a software development firm. You have been requested by your team leade

Why it is difficult to improve software process, List four reasons why it i...

List four reasons why it is difficult to improve software process.   It is difficult to improve software process due to following reasons: 1. Lack of knowledge 2. Not eno

Write a short note on structure chart, Q. Write a short note on structure c...

Q. Write a short note on structure chart? Structure Chart is a most important program design technique and shows all components of code in a hierarchical format. Structure

Explain quality assurance and standards, Quality assurance and standards ...

Quality assurance and standards Standards are the key to effective quality management. They may be international, national, and organizational or project standards. Prod

State the categories of software maintenance, Categories of software mainte...

Categories of software maintenance There are three categories of maintenance:  i) Corrective Maintenance ii) Adaptive Maintenance iii) Perfective Maintenance

#title.decision table, You are to create a decision table to help you decid...

You are to create a decision table to help you decide what to do for the day. If it is a weekday and it is not a holiday, then you go to work. However, if it is a weekday and it

Performing validation testing, What are the conditions exists after perform...

What are the conditions exists after performing validation testing? After performing the validation testing there exists two conditions.  The function or performance charact

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd