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 performance testing, Performance testing signifies loads, volumes, ...

Performance testing signifies loads, volumes, and response times, as described by requirements. Although performance testing is a part of system testing, it can be regarded as a ex

Compare CMM with ISO 9001, Q. Compare CMM with ISO 9001 ? 1: Managemen...

Q. Compare CMM with ISO 9001 ? 1: Management responsibility: ISO 9001 needs that the quality policy be defined and documented and understood as well implemented and maintaine

Explain in detail about functional modeling, Explain in detail about Functi...

Explain in detail about Functional Modeling. This model explains the computations that take place within a system. This model is useful when the transformation from the i

Illustrate detailed cocomo model, Q. Illustrate Detailed COCOMO model? ...

Q. Illustrate Detailed COCOMO model? Detailed COCOMO it incorporates all characteristics of the intermediate version with an assessment of the cost driver's impact on every ste

Explain the purpose of checkpoints in winrunner, Explain the purpose of che...

Explain the purpose of checkpoints in Winrunner? Checkpoints help to compare behavior of current application to its previous version. There are total of four types of checkpoin

Offshore oil industry, as software project manager in company specialized o...

as software project manager in company specialized on offshore oil industry have been tasked to discover factors affecting mantainability of the system developed by the company.wh

Write about the types of project plan, Write about the types of project pla...

Write about the types of project plan. Quality plan - This plan explains the quality procedures and standards that will be used in a project. Validation plan - This plan explai

Explain product metrics, What is Product metrics? A quality metric shou...

What is Product metrics? A quality metric should be a predictor of product quality. Classes of product metric Dynamic metrics which are collected by measurements made

Iterative Enhancement Model, what is the advantage of Iterative Enhancement...

what is the advantage of Iterative Enhancement Model in developing a system?

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