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

Neural network logo recognition, java/python based application which lets y...

java/python based application which lets you upload images of car logos and detects which logo it is by outputting the ID number of that image. Neural network is used to achieve th

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

Making, How can we make a software

How can we make a software

What is prototyping approaches in software process, What is prototyping app...

What is prototyping approaches in software process? i. Evolutionary prototyping - In this approach of system development, the initial prototype is prepared and it is then refin

Structured analysis and structured design, Differentiate between structured...

Differentiate between structured analysis and structured design.  The aim of structured analysis is to transform the textual explanation of a problem into a graphic model. Duri

List the process maturity levels in seis cmm, List the process maturity lev...

List the process maturity levels in SEIs CMM. Level 1: Initial - Few processes are explained and individual efforts are taken. Level 2: Repeatable - To track cost schedul

What is structure chart, Structure chart:  A structure chart is a top-down...

Structure chart:  A structure chart is a top-down modular design tool, constructed of squares representing the dissimilar modules in the system, and lines that connect them. The l

Discuss in details about functional modeling, Discuss in details about Func...

Discuss in details about Functional Modeling. This model describes the computations that take part within a system. This model is helpful when the conversion from the inp

How the restructuring helps in maintaining a program, The restructuring hel...

The restructuring helps in maintaining a program in the following ways:        (a) Programs have higher quality, good documentation, less complexity, and conformance to modern

State the software measure, What is software measure? A software measu...

What is software measure? A software measure is a mapping from a set of objects in the software engineering world information a set of mathematical construct like numbers or v

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