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

C++, how to save image of a dialog box by using c++

how to save image of a dialog box by using c++

Why software maintenance is require, Why Software maintenance is require ...

Why Software maintenance is require Software maintenance is done due to the below factors. i)  To rectify the errors which are encountered during the operation of software.

What are the two levels of testing, What are the two levels of testing? ...

What are the two levels of testing? i. Component testing Individual works are tested. Tests are derived from developer's experience. ii. System Testing The group o

Explain function points, Function points: Function point calculates the fu...

Function points: Function point calculates the functionality from the user point of view, that is, on the basis of what the user request and receives in return. Thus, it deals wit

Use of test file generators in software engineering, Q. Use of Test file ge...

Q. Use of Test file generators in software engineering? Test file generators This creates a file of information that is used as the program and does so based on comments give

What is meant by software prototyping, What is meant by software prototypin...

What is meant by software prototyping? Software prototyping is a process of creating a model for the software product. This is developed based on the currently known requiremen

Explain testability, Explain Testability? Ans) (1) The degree to which a...

Explain Testability? Ans) (1) The degree to which a scheme or component facilitates the establishment of test criteria and the performance of tests to verify whether those crite

Ftr, EXPLAIN ABOUT DEFECT AMPLIFICATION AND REMOVAL IN SOFTWARE ENGINEERING...

EXPLAIN ABOUT DEFECT AMPLIFICATION AND REMOVAL IN SOFTWARE ENGINEERING

Compute the mccobes cyclomatic complexity, Q. Compute the McCobes cyclomati...

Q. Compute the McCobes cyclomatic complexity? (i) compute the McCobe's cyclomatic complexity (ii) Find out independent path Ans (i) Cyclomate complexity V (

What is the meaning of requirement engineering, What is the meaning of requ...

What is the meaning of requirement engineering? Requirement engineering defined as the process of setting up the services that the customer requires from the system and the co

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