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

Handling customer complaints, Handling customer complaints There are al...

Handling customer complaints There are always some customers who complain after completing the sales. Like customer objections, don't take complaints negatively. Other than

What is fault tree analysis, What is Fault Tree Analysis? Ans) A form of...

What is Fault Tree Analysis? Ans) A form of safety examines that assesses hardware safety to give failure statistics and sensitivity analyses that point to the possible effect o

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 are the various categories of software, What are the various categorie...

What are the various categories of software? Application software System software Engineering/Scientific software Web Applications Embedded software Artificial I

Software life cycle, A) In terms of maintenance in software life cycle, doe...

A) In terms of maintenance in software life cycle, does RUP or agile approach give  better support? Describe your answer.   B) Explain how agile development approach and RUP

Explain length of code - software metrices, Explain Length of code This...

Explain Length of code This is a measure of the size of a program. Usually, the larger the size of the code of a component, the more difficult and error-prone that component is

Software project planning entails what activities, Software project plannin...

Software project planning entails what activities? Software project planning entails the many activities: -  Estimation:  o Effort, , resource, cost and project duratio

What is system, A set of people, machines, and methods prepared to accompli...

A set of people, machines, and methods prepared to accomplish a set of specified functions.

What is control chart, What is Control Chart? Ans) A statistical method ...

What is Control Chart? Ans) A statistical method for distinguishing among common and special cause variation exhibited by processes.

Srs, Why SRS document is also called as boack-box specification of a system...

Why SRS document is also called as boack-box specification of a system

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