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 equivalent size measure software metrics, Q. Explain Equivalent siz...

Q. Explain Equivalent size measure software metrics? Equivalent size measure:- Models makes no distinction between a new software and the portion being reused. The equivalent

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

Data Flow Diagram, I need help creating a DFD for an assignment. Is there a...

I need help creating a DFD for an assignment. Is there anyway you could help?

Why decision tables are not used in boundary value, Why decision tables are...

Why decision tables are used in many cases instead of boundary value and equivalence partitioning analysis? - A decision table is an efficient way to deal with combinations of

Discrete mathematics, Within the discussion board area, respond to the foll...

Within the discussion board area, respond to the following questions with your thoughts, ideas, and comments. This will be the foundation for future discussions by your fellow clas

Searching the database - micro cds/isis application, Searching the Database...

Searching the Database: Searching the database and printing the results of a search are important features associated with CDS/ISIS package. The query formulation strategy pro

Describe basic steps in software cost estimation, Question: (a) Describ...

Question: (a) Describe fully the first five basic steps in software cost estimation. (b) What are the main differences between COCOMO1 and COCOMO2 cost estimation models?

Discuss possible ramifications of these opposing obj, AskDiscuss possible r...

AskDiscuss possible ramifications of these opposing objectives on the project question #Minimum 100 words accepted#

Define software reliability, Define software reliability. Software reli...

Define software reliability. Software reliability is the probability that software will give failure-free operation in a fixed environment for a fixed interval of time. Probabi

What is function points, A consistent measure of software size based on use...

A consistent measure of software size based on user needs.

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