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

Nonfunctional requirements of clue-less system, Nonfunctional Requirements ...

Nonfunctional Requirements Performance Requirements PE-1: The Clue-Less system shall accommodate 6 users during peak usage, with an estimated average session duration of 15 m

Registers, which are the invisible registers?

which are the invisible registers?

State the defined level of maturity model, Level 3 (Defined) The org...

Level 3 (Defined) The organisation satisfies all the requirements of level-2. Atthis maturity level, the softwaredevelopmentprocesses arewell defined, managed and documented

Describe dom browser extension, Describe DOM browser extension. - Docum...

Describe DOM browser extension. - Document Object Model (DOM) browser extension is a SilkTest add-on component for testing Web applications. - DOM browser extension communic

What is the utilisation of cmm, What is the utilisation of CMM? Capabil...

What is the utilisation of CMM? Capability Maturity Model is used in assessing how fine an organisation's processes permit to complete and manage latest software projects

Explain abstraction, Abstraction :- Abstraction allows one to concentrate o...

Abstraction :- Abstraction allows one to concentrate on a problem at some level of generalization without regard to irrelevant low level details; use of abstraction also allows one

Implementing an erp system at hawkins cookers ltd, Question : (a) What ...

Question : (a) What are the main characteristics of an ERP system? List the benefits and disadvantages of implementing an ERP system at Hawkins Cookers Ltd. (b) Explain the

The worker pool multi-threading architecture, QUESTION (a) Compare the ...

QUESTION (a) Compare the worker pool multi-threading architecture with the thread-per-request architecture. (b) What thread operations are the most significant in cost? (

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