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

Explain in detail about black box testing, Explain in detail about Black bo...

Explain in detail about Black box testing. Black box or behavioural testing focuses on the functional needs of the software. It is applied during the last phase of testin

What do you understand by the term integrity, Question: (a) What do yo...

Question: (a) What do you understand by the term "integrity"? (b) Which type of attack denies authorized users access to network resources? (c) You have discovered tha

What are the problems of prototyping, What are the Problems of Prototyping ...

What are the Problems of Prototyping  In some organisations, theprototyping isn't as successful as anticipated. A common problem with this approach is that people expect much

Explain equivalence class partitioning, Explain Equivalence Class Partition...

Explain Equivalence Class Partitioning Equivalence Class Partitioning: It is a method in black box testing. It is designed to decrease the number of test cases by dividing t

Why system flowcharts are used, System flowcharts System flowcharts are...

System flowcharts System flowcharts are used to demonstrate how all the components in a system link together (for example input, storage, output, processing etc.). They are ver

What is test scenario, The terms "test scenario" and "test case" are certai...

The terms "test scenario" and "test case" are certain used synonymously. Test scenarios are test cases or test scripts, and the series in which they are to be implemented. Test sce

Briefly explain integration testing, Q. Briefly explain Integration Testing...

Q. Briefly explain Integration Testing? Integration Testing: In this the module are methodically integrated and tested to find protocol design error, interface problems, errors

What is incremental testing, Incremental testing is fractional testing of a...

Incremental testing is fractional testing of an incomplete product. The aim of incremental testing is to give an early feedback to software developers.

What are decision tables, What are decision tables? Why do we use them? ...

What are decision tables? Why do we use them? - Decision tables are specification-based techniques that are more focused on business rules or business logic. - A decision ta

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