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

What does level0 dfd means, What does Level0 DFD means? Level0 DFD is c...

What does Level0 DFD means? Level0 DFD is called as 'fundamental system model' or 'context model'. In the context model the total software system is represented by a single bub

Explain the waterfall model, Explain the waterfall model. Explain why it is...

Explain the waterfall model. Explain why it is more advantageous than adhoc methods. Ans Waterfall Model: 1.The waterfall model is a chronological software development p

What is path coverage testing, What is Path Coverage Testing? Ans) A tes...

What is Path Coverage Testing? Ans) A test process satisfying coverage criteria that every logical path by the program is tested. Paths through the program often are grouped int

Explain iterative enhancement model, Q. Explain Iterative Enhancement model...

Q. Explain Iterative Enhancement model? This model incorporates modification in the software based on the analysis of the existing system. As well the complete documentation of

Software Metircs, I have a comprehensive question for Software Metrics ...i...

I have a comprehensive question for Software Metrics ...it is 16 question

What is oo function testing, Function testing of OO software is no dissimil...

Function testing of OO software is no dissimilar than validation testing of procedural software. Client involvement is generally part of this testing stage. In OO environment use c

Distinguish software faults and software failures, Distinguish software fau...

Distinguish software faults and software failures Ans: In case of a failure, the software does not do what the user expects. A fault is a programming error that may or may not

Problem frams, . We discussed the importance of framing a problem in order ...

. We discussed the importance of framing a problem in order to understand the problem better and be able to develop a solution more quickly and easily. In this homework, you are

Write definition of software process, Write definition of software process....

Write definition of software process. Software process is termed as the structured set of doings that are required to develop the software system.

Write short notes on decision table, Q. Write short notes on Decision Table...

Q. Write short notes on Decision Table? Decision Table: While the process logic for a process involves multiple conditions as well as is very complicated it isn't advisable t

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