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

Determine the software development models, Determine the Software developme...

Determine the Software development models Software Engineering deals with development of software. Thus, understanding the basic characteristics of software is essential. Softw

Briefly describe what are deployment diagrams, Question: (a) Compare t...

Question: (a) Compare the following pairs of terms as used in object oriented software engineering: (i) Association and Association class (ii) Multiplicity and multiple

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

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

What is meant by throw away prototyping, What is meant by Throw away Protot...

What is meant by Throw away Prototyping? Giving the user a system which is incomplete and then changing and augmenting it as the user requires become clear. The objective

How is software design different from coding, Q. How is software design dif...

Q. How is software design different from coding? Ans: Points of difference among software design as well as coding can be laid down as under: Design : 1. Design is mo

Describe about the incremental model, Explain about the incremental model. ...

Explain about the incremental model. Have similar phases as the waterfall model. Phases are Analysis. Design. Code. Test. Incremental model delivers

Define product metrics, Normal 0 false false false EN-I...

Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4

How can we re-engineering of any product, How can we re-engineering of any ...

How can we re-engineering of any product One additional difficulty in adopting this approach is large investment which exists in software system maintenance. It requires additi

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