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

Software Metircs, I have a comprehensive question for Software Metrics ...i...

I have a comprehensive question for Software Metrics ...it is 16 question

Explain bottom-up integration, Bottom-up integration This testing start...

Bottom-up integration This testing starts construction and testing with the components at the lowest levels in the program structure.

When we need re-engineer, Q. When we need Re-Engineer? When the sys...

Q. When we need Re-Engineer? When the system changes are mainly confined to part of the system then re-engineer that part. When hardware or else software support become

Define repeated inheritance, Repeated inheritance If a class inherits ...

Repeated inheritance If a class inherits more than once from the same class then it is referred to as repeated inheritance.

What are the debugging programs, Q. What are the Debugging programs? De...

Q. What are the Debugging programs? Debugging programs:-A program which runs simultaneously with the program under test and provides commands to examine memory and registers st

State in detail about the software design, State in detail about the Softwa...

State in detail about the Software design Software design is the core of software engineering process and first of three important technical activities that are design, coding,

Extracting caracthers orplate recognition on Metlab, how to extract the cha...

how to extract the characters from the car plate image to car plate recognition. Matlab code

Driven development, what is driven development?give example what benifit of...

what is driven development?give example what benifit of driven development

What is customer (end user), What is Customer (end user)? Ans) The organ...

What is Customer (end user)? Ans) The organization or individual, internal or external to the producing organization that takes the product.

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