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

When must you stop testing, When must you stop testing? It is very diff...

When must you stop testing? It is very difficult to determine as many modern software applications are complex and run in such an interdependent environment that complete testi

Explain logarithmic poisson execution time model, Q. Explain Logarithmic Po...

Q. Explain Logarithmic Poisson Execution Time Model? This model is as well developed by Musa et Al (MUSA79). The breakdown intensity function is different here as compared to B

Explain dalvik virtual machine, Question 1 Write short notes on (i) Lex...

Question 1 Write short notes on (i) Lexical Analysis (ii) Syntax Analysis (iii) Semantic Analysis 2 Explain various data structures used in Macro Processor Design 3 Descr

Software Engineering environments, 1.1 Discuss possible ramifications of th...

1.1 Discuss possible ramifications of these opposing objectives on the project. What would you do if you were the manager?

Process assessment, how can we improve requirements Engineering process ass...

how can we improve requirements Engineering process assessment model

Explain test case, Documentation verifying inputs, predicted results, and a...

Documentation verifying inputs, predicted results, and a set of implementation conditions for a test item. A test case is a document that explains an input, action, or event and

Illustrate key process areas of cmm, Q. Illustrate key process areas of CMM...

Q. Illustrate key process areas of CMM? The key process areas of CMM are 1. Requirements management that establishes a common relationship between the customer and developer

What is upwardly compatible software, "Upwardly compatible software" is sof...

"Upwardly compatible software" is software that is compatible with a later or more difficult version of itself. For example, an upwardly compatible software is able to occur files

Development phases of the detailed cocomo model, Q. Explain the development...

Q. Explain the development phases of the detailed COCOMO model. Ans A software development is performed in four successive phases which are as follows 1 : plan/requirement

Data dictionary, What is data dictionary entry explain

What is data dictionary entry explain

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