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 the sauers model, Question 1: a) Describe the various activitie...

Question 1: a) Describe the various activities and or processes related to the development of Information systems. b) Using a diagram, show the several development processes

Discuss spiral model for software life cycle, Discuss spiral model for soft...

Discuss spiral model for software life cycle SPIRAL MODEL The spiral model is classified into number of frame works. These frameworks are represented by task regions.

Category Partition Testing and Data Flow Assignment, The following program ...

The following program will display an integral solution to the quadratic equation ax2+bx+c for integral values of a,b, and c, where a,c fall between 0 and 10, while b falls between

Define metrics, Define metrics. Metrics is explained as the degree to w...

Define metrics. Metrics is explained as the degree to which a system component, or process possesses a given attribute.

What is live variable, What is live variable A variable is live from it...

What is live variable A variable is live from its first to its last reference within a process.

Management issues in software development, Q. Management Issues in software...

Q. Management Issues in software development? Management Issues:-Project managers typically write the risk management plan and most people don't wish to air their weaknesses in

Explain the software prototyping, What is meant by software prototyping? ...

What is meant by software prototyping? Software prototyping is a process of producing a model for the software product. This is developed based on the recently known requiremen

Explain key process areas of cmm, Key process areas of CMM. 1.  Require...

Key process areas of CMM. 1.  Requirements management which establishes a common relationship among the customer and developer 2.  Software project planning where reasonable

Salient features of ISO 9001 certification, Q. Salient features of ISO 9001...

Q. Salient features of ISO 9001 certification? Ans) Salient(noticeable) features of ISO 9001 certification are :- All documents concerned with the development of a softw

Define the alpha testing and beta testing, Alpha testing and Beta testing ...

Alpha testing and Beta testing Alpha testing is conducting acceptance testing in the environment where the application was formed. It is done by the customer. Beta testing is c

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