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 function points, A consistent measure of software size based on use...

A consistent measure of software size based on user needs.

Explain respiratory quotient, Explain Respiratory quotient? Ans) Respira...

Explain Respiratory quotient? Ans) Respiratory quotient is the ratio among the carbon-dioxide used in photosynthesis to the quantity of oxygen liberated in respiration.

What is structure chart, Q. What is Structure chart? A structure chart ...

Q. What is Structure chart? A structure chart is a top-down modular design tool construct of squares representing the different modules in the system as well as lines that conn

What is structured programming explain, Q. What is structured programming a...

Q. What is structured programming and why is it important? Ans. Structured programming is a term that was coined in the late 1960's to mean programming without using go to st

Determine the boundary value analysis, What is a boundary value analysis? ...

What is a boundary value analysis? A boundary value analysis is a testing procedure by which the elements at the edge of the domain are selected and tested. It is a test case d

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?

Developing prototype software, Introduction Energy consumer in the comp...

Introduction Energy consumer in the computer system is getting critical all around the globe now. Therefore, the ability to figure out the components that consume energy in sys

What is Regression testing, Regression testing:- It is the re-execution ...

Regression testing:- It is the re-execution of some subset of tests that have already been conducted to make sure the changes that have not been propagated unintended side e

Com 101p, Peripheral devices are irrelevant to the computer

Peripheral devices are irrelevant to the computer

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