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

Give the procedure of the delphi method, Give the procedure of the Delphi m...

Give the procedure of the Delphi method. 1. The co-ordinator presents a specification and estimation form to all experts. 2. Co-ordinator calls a group meeting where the exp

Explain acceptance testing, Testing conducted to verify whether or not a sy...

Testing conducted to verify whether or not a system satisfies its acceptance criteria and to enable the customer to verify whether or not to accept the system. Contrast with testin

Flow chart, desidn a complete flow chart diagram ,which ask the user to inp...

desidn a complete flow chart diagram ,which ask the user to input the rate of diesel and quantity of diesel consumed.after calculate the total amount of diesel consumed and display

Disadvantage of software package, Disadvantage of Software package: Th...

Disadvantage of Software package: There are some disadvantages which need to be looked into. They are:  i)  A commercial software package will have a number of built-in

Scenario easy travel singapore ets, select alife cycle model that you would...

select alife cycle model that you would follow during the devolpment of the easy travil singapore system. give an outline description of thise life cycle and justify your chice of

Discuss about the software maintenance, Discuss about the Software Maintena...

Discuss about the Software Maintenance Maintenance in the normal sense means correcting problems caused by wear and tear though software maintenance is different.  Software is

Explain boundary value analysis, A selection method in which test data are ...

A selection method in which test data are chosen to lie along "boundaries" of the input domain [or output range] classes, data structures, procedure parameters, etc. Choices often

Data structure, what do you understand by recursion.explain the simulating ...

what do you understand by recursion.explain the simulating recursion in brief.program of fabinacon series by recursion

List the principles of a software design, List the principles of a software...

List the principles of a software design. i. The design process should not suffer from "tunnel vision". ii. The design should be traceable to the analysis model. iii. The

What is software measure, What is software measure? A software measure ...

What is software measure? A software measure is a mapping from a set of objects in the software engineering world information a set of mathematical construct like numbers or ve

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