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

Dfd, online admision application

online admision application

Distinguish between verification and validation, Distinguish between verifi...

Distinguish between verification and validation. Verification refers to the set of activities that make sure that software correctly executes a specific function. Validation re

What is evolutionary prototype, Evolutionary Prototype In this, prot...

Evolutionary Prototype In this, prototype is constructed to learn about software problems and their solutions in successive steps. Prototype is initially developed to satisf

Software metrices, 1. Take a look at the code and try to understand the lo...

1. Take a look at the code and try to understand the logic, particularly, the way scrambled words are disambiguated, i.e.., whether they are matched successfully against a correct

Encapsulation, Illustrate the use of the concept Encapsulation.

Illustrate the use of the concept Encapsulation.

What are the common approaches in debugging, What are the common approaches...

What are the common approaches in debugging? Brute force method: The memory dumps and run-time tracks are examined and program with write statements is loaded to obtain clues t

Define software process, Define software process. Software process is e...

Define software process. Software process is explained as the structured set of activities that are need to develop the software system.

Salient features of ISO 9001 certification, Q. Salient features of ISO 9001...

Q. Salient features of ISO 9001 certification? Ans) Salient(noticeable) features of ISO 9001 certification are :- All documents concerned with the development of a softw

What are the approaches of integration testing, What are the approaches of ...

What are the approaches of integration testing? The integration testing can be carried out using two approaches. 1. The non-incremental testing. 2. Incremental testing.

What is a data object, What is a data object? Data object is a collecti...

What is a data object? Data object is a collection of attributes that act as an aspect, characteristic, quality, or descriptor of the object.

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