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

Distribution of the package, Distribution of the Package: In the last ...

Distribution of the Package: In the last 12 years of its existence CDS/ISIS software has become one of the most popular packages of its kind. It is estimated that there are ab

What is the impact of "information era., Software Engineering 1. What i...

Software Engineering 1. What is the impact of "information era"? 2. Illustrate whether the linear sequential model of the software process is an accurate reflection of softw

Iterative enhancement model, Iterative Enhancement Model Iterative Enha...

Iterative Enhancement Model Iterative Enhancement Model: This model has the similar phases as the waterfall model, but with fewer restrictions. Normally the phases happen in th

Explain about the iterative enhancement model, Iterative Enhancement Model ...

Iterative Enhancement Model This model was developed to remove disadvantages of waterfall model. In this model, phases of software development remain the same however the cons

State the function of functional model, State the function of Functional mo...

State the function of Functional model Functional model: This defines operation which the system must implement. For every operation, from analysis model must be assigned al

Explain the software measurement, Define software measurement. A softw...

Define software measurement. A software measurement is a procedure or way that applies software measures to a class of software engineering objects to achieve a predefined goa

Discuss in brief about iterative waterfall, Discuss iterative waterfall ...

Discuss iterative waterfall Iterative waterfall model a) Requirement collecting  phase in which all requirements are specified. b) The design phase is responsible for cr

What are the three activities of risk assessment, What are the three activi...

What are the three activities of risk assessment? Ans: The three activities are analyzing, identifying and giving priorities. Risks are able to be identified by a check list

Define the term - inspection, Define the term - Inspection - An inspec...

Define the term - Inspection - An inspection is more formal than walk through. - It includes 3-8 people - a moderator, reader as well as a recorder to take notes. - Subj

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