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

Write short notes on configuration management, Q. Write short notes on Conf...

Q. Write short notes on Configuration Management? Software configuration management is a bunch of tracking and control activities that begin when a software project begins an

How to minimize energy consumption in software program, In order to minimiz...

In order to minimize the energy consumption, the report will first identify the components that are consuming most energy in a system. Clearly, above mentioned are those components

What is the meaning of software, What is the meaning of Software? Softw...

What is the meaning of Software? Software is termed as a set of computer programs that are related documents that are indented to provide required features, functionalities and

Why waterfall model is advantageous than adhoc methods, Q. Why Waterfall mo...

Q. Why Waterfall model is advantageous than Adhoc Methods? Why Waterfall model is advantageous than Adhoc Methods AC16 Software Engineering Ad-hoc Process Models -Process

List the pre-requisites for white-box testing, List the pre-requisites for ...

List the pre-requisites for white-box testing Pre-requisites for white-box testing are similar to black-box testing with one key difference: - During white-box testing, test

State about the elementary modeling techniques, State about the Elementary ...

State about the Elementary Modeling Techniques A model illustrating bare minimum requirements is known as Essential Model. It has two components: a) Environmental model B)

Define debugging, Define debugging. Debugging is explained as the proce...

Define debugging. Debugging is explained as the process of removal of defect. It happens as a consequence of successful testing

Explain static analysis, Explain Static analysis? Ans) (1) Analysis of a...

Explain Static analysis? Ans) (1) Analysis of a program that is performed without implementing the program. (2)The process of assessing a system or component based on its for

Explain the difference between latent and masked defect, Explain the differ...

Explain the difference between Latent and Masked Defect. Latent Defect is one which has been in the system for a long time; but is discovered now. I.e. A defect which has been

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