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

Define traceability, Define Traceability Traceability is the overall...

Define Traceability Traceability is the overall property of requirements specification which reflects the easiness of finding related requirements. Three different parts

What is software maintenance and cocomo model, What is software maintenance...

What is software maintenance? Software maintenance is a set actions in which program are customized after it has been put into use. COCOMO model :- COnstructive COst MOd

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

Define the concept of SRS, Define the concept of SRS An SRS clearly def...

Define the concept of SRS An SRS clearly defines following:  • External Interfaces of the system: They identify information which is to flow 'from and to' to the system.

Define the system requirements, What is meant by System Requirements? ...

What is meant by System Requirements? Place the system services and constraints in detail. Serves as a link between the system purchaser & the system developer.

What does data dictionary contains, What does data dictionary contains? ...

What does data dictionary contains? Name: The primary name of the data. Alias: other names used Where-used/How-used: A record of processes that use the data or control it

What is integration testing and system testing, What is the difference in w...

What is the difference in writing the test cases for Integration testing and system testing? Integration testing is done at module level when lots of modules are integrated wit

Determine the importance of software engineering, Importance of Software En...

Importance of Software Engineering As the application domains of software are becoming complicated and design of big software without a systematic method is virtually impossib

Linearizability and sequential consistency, QUESTION - Fault Tolerance ...

QUESTION - Fault Tolerance (a) Three computers together provide a replicated service. The manufacturers claim that each computer has a mean time between failure of five days; a

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