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 waterfall model, Waterfall is a model of the software development p...

Waterfall is a model of the software development process in which the idea phase, requirements phase, design phase, execution phase, test phase, installation phase, and checkout ph

Determine the principle stages of vord method, What are the principle stage...

What are the principle stages of VORD method? Viewpoint identification: Identify the services provided to each point of view Viewpoint structuring: Sorting related viewpoint

Explain quick-fix model, Explain Quick-fix Model Quick-fix Model : Thi...

Explain Quick-fix Model Quick-fix Model : This is the easiest model used for the maintenance of the software. In this model changes at the code level are made as early as poss

What is validation represent, What is Validation represent? Validation ...

What is Validation represent? Validation means a set of deeds that ensure that the software that has been built to satisfy the customer requirements.

SQA Planning, I want to know that what are the activities, roles,artifacts ...

I want to know that what are the activities, roles,artifacts and goals do a planning phase of SQE encempass? How can we prepare sqa plan for any project?

Explain regression testing, Regression test cases which a program has previ...

Regression test cases which a program has previously implemented correctly in order to detect errors spawned by changes or corrections done during software development and maintena

What are the fundamental activities of a software process, What are the fun...

What are the fundamental activities of a software process?   Specification  Design and implementation Validation Evolution

Describe system testing, Describe system testing.   System testing: ...

Describe system testing.   System testing: System test are designed to authenticate a fully developed systems with a view to assuring that it meets its requirements. There

What are 5 common problems in software development process, What are 5 comm...

What are 5 common problems in software development process? 1. Bad requirements - These requirements are unclear, too general, incomplete, or not testable. They cause problem

What are the characteristics of the software, What are the characteristics ...

What are the characteristics of the software?  Software is engineered, not manufactured.  Software does not wear out.  Most software is custom built rather than being ass

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