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 ad hoc testing, Ad hoc testing is a testing approach. It is the lea...

Ad hoc testing is a testing approach. It is the least formal testing approach.

What is software maintenance, What is software maintenance? Changes to...

What is software maintenance? Changes to the software are made in response to altered requirements but the fundamental structure of the software remains stable.

What does validation represent, What does Validation represent? Validat...

What does Validation represent? Validation shows the set of activities that ensure that the software that has been built is satisfying the customer needs.

Connectivity Issue in Asp.net, Sir, our project is not connecting with SQL ...

Sir, our project is not connecting with SQL server. How to insert own created database in ASP.net

What is test data generators, Q. What is Test data generators? This is...

Q. What is Test data generators? This is a difficult one as well as at least for the present is one for which no general solution exists. One of the practical problems with te

What is a test build manager, Test Build Managers deliver present software ...

Test Build Managers deliver present software versions to the test environment, install the application's software and relate software patches, to both the application and the opera

How is cyclomatic complexity useful in program test, Q. How is cyclomatic c...

Q. How is cyclomatic complexity useful in program test and What is sequence of testing and  What is testability? Ans. Cyclomatic complexity measures the amount of decision lo

Draw the context diagram, Q. A supermarket requires to develop software to ...

Q. A supermarket requires to develop software to encourage regular customers. For this the customer requires to supply his name address telephone number and driving license number.

Define the sanity testing, Sanity testing : - Sanity testing is used to ...

Sanity testing : - Sanity testing is used to make sure that multiple or conflicting functions or variables do not exist in the system. - It verifies that the components of th

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