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

XML, Ask Create an XML file with markup tags and some sample data to repres...

Ask Create an XML file with markup tags and some sample data to represent a list of invoices.

What is the need for obtaining ISO 9000 certification, Q. What is the need ...

Q. What is the need for obtaining ISO 9000 certification? The need for obtaining ISO 9000 certification :- Confidence of customers in an organization improves when orga

Case tools, #question2. Explain any ten CASE tools...

#question2. Explain any ten CASE tools...

Evaluate the agresti-card-glass metrics, Question 1: We have a small sy...

Question 1: We have a small system with a call graph as given below. Consider that each vertex is a module. All modules are new (i.e., n = n0) Also consider that the number of

Explain smoke testing, Explain Smoke testing - Smoke testing covers all...

Explain Smoke testing - Smoke testing covers all of the fundamental functionality of application. - It is considered as the main test for checking the functionality of appli

Explain the static testing and dynamic testing, Static testing and dynamic ...

Static testing and dynamic testing Static testing is checking the application without actually running the application while dynamic testing checks the application by running i

Write definition of dfd, Write definition of DFD? Data Flow Diagram sup...

Write definition of DFD? Data Flow Diagram supplies the information flow and the transforms that are used on the data as it moves from input to output.

Explain software process, Define software process. Software process is ...

Define software process. Software process is explained as the structured set of activities that are needed to develop the software 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