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

Question, why are older data models are being replaced by new data models

why are older data models are being replaced by new data models

Registers, which are the invisible registers?

which are the invisible registers?

Why decision tables are not used in boundary value, Why decision tables are...

Why decision tables are used in many cases instead of boundary value and equivalence partitioning analysis? - A decision table is an efficient way to deal with combinations of

Define equivalence partitioning, What is equivalence partitioning? Equi...

What is equivalence partitioning? Equivalence partitioning is a black box method that separates the input domain into classes of data. From this data test cases can be derived.

What is a user friendly document, What is a user friendly document? Ans)...

What is a user friendly document? Ans) A document is user friendly, when it is designed and written with simple of use, as single of the primary objectives of its design.

Describe the main categories of e-commerce, Question 1: (a) A company w...

Question 1: (a) A company wishes to under-go a Business Process Re-engineering activity with respect to its core business processes. Explain the extent to which MIS could be

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

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

List the important properties of a modular system, List the important prope...

List the important properties of a modular system.    Desirable properties are:- Every module is a well defined subsystem useful to others Every module has a well defined single

Write note on arm processor, Question 1 Explain the categories of Embedded...

Question 1 Explain the categories of Embedded Systems Question 2 Write a note on Serial Interface in 8051 Question 3 Explain the various types of addressing modes in 805

Explain in detail about data modelling, Explain in detail about data modell...

Explain in detail about data modelling. Data modeling makes use of the ERD. Having of 3 interrelated information. The data object. Attributes.  Relationsh

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