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

What is software maintenance and cocomo model, What is software maintenance...

What is software maintenance? Software maintenance is a set actions in which program are customized after it has been put into use. COCOMO model :- COnstructive COst MOd

Explain about virtual memory, Explain about Virtual memory Virtual memo...

Explain about Virtual memory Virtual memory is a method used in some large computer that permit the user to construct programs as by a large memory space were available, equal

What is the purpose of timeline chart, What is the purpose of timeline char...

What is the purpose of timeline chart? The purpose of the timeline chart is to emphasize the scope of the individual task. As set of tasks are given as input to the timeline ch

What is coverage analysis, What is Coverage analysis? Determining and as...

What is Coverage analysis? Determining and assessing calculated associated with the invocation of program structural elements to verify the adequacy of a test run. Coverage anal

What is reverse engineering, Q. What is reverse engineering? Ans. It ...

Q. What is reverse engineering? Ans. It is a method of analysing software with a view to understanding its design and specification. - In source code, reverse engineering

Program for users to play the game of brick, Hello I need Solution for How...

Hello I need Solution for How">http://www.expertsmind.com/questions/program-for-users-to-play-the-game-of-brick-30137058.aspx, How much it Will COst?

What is software requirement specification, Q. What is Software requirement...

Q. What is Software requirement Specification (SRS)? Why is it important? List the characteristic of a good quality SRS? Ans: (SRS) Software Requirement Specification Documen

What does modularity concept mean, What does Modularity concept mean? S...

What does Modularity concept mean? Software architecture embodies modularity; ie, Software is named in to addressable components called as modules that are integrated finally.

Cs304, Following is the description of all data member and member functions...

Following is the description of all data member and member functions of respective classes: ? Data members for PropertyCategories: o SocietyName: This data member will be used

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