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 the process of prototyping, Explain the process of Prototyping ...

Explain the process of Prototyping Prototyping is a process which enables developer to create a small model of software. IEEE 610.12 standard defines prototype as a preliminary

Define sandwich testing, Define sandwich testing. Testing joins the ide...

Define sandwich testing. Testing joins the ideas of bottom-up and top-down testing by explaining a certain target layer in the hierarchy of the module.

Developing conventional, a) Describe refactoring in XP practices. Why refac...

a) Describe refactoring in XP practices. Why refactoring is important for making high quality software systems using agile approach?   b) Can agile approach being used in dev

Explain about function count - software metrics, Q. Explain about Function ...

Q. Explain about Function count? Function count:- It measures the functionality from the user point of view that is on the basis of what the user requests and receives in ret

Explain iterative enhancement model, Q. Explain Iterative Enhancement model...

Q. Explain Iterative Enhancement model? This model incorporates modification in the software based on the analysis of the existing system. As well the complete documentation of

Encryption models, Please name some of the best (most successful) encryptio...

Please name some of the best (most successful) encryption models for use in the business community. I need to know the benefits and disadvantages of each, as well as the cost effec

Write definition of state transition diagram, Write definition of state tra...

Write definition of state transition diagram? State transition diagram is mainly a collection of states and events. Due to the events the system has to change its state. It als

Write about software change methods, Write about software change methods. ...

Write about software change methods. The software change strategies that could be applied individually or together are: Software maintenance - The changes are made in the softw

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