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

Describe the formal software process model, Question 1: (a) Describe t...

Question 1: (a) Describe the Formal Software Process Model. (b) What are the main strengths of the Formal Software Process Model ? (c) Why is the Software Process Mode

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

Discuss the various strategies of design, Q. Discuss the various strategies...

Q. Discuss the various strategies of design. Which design strategy is most popular and practical? Ans The most commonly utilized software design strategy involved decomposing

Who is a stake holder for a software project, Q. Who is a stake holder for ...

Q. Who is a stake holder for a software project? [Stake holder :- something or somebody with direct interest:  a group or person with a direct interest, investment or involvem

Design test cases for loop testing, Q. Regard as a program that reads a set...

Q. Regard as a program that reads a set of Data for 'n' no. of triangles. The program reads three integer values like representing the sides of triangles. The program prints for ea

What is a modular system, What is a modular system? A modular system h...

What is a modular system? A modular system having of well defined manageable units to well defined  interfaces between them.

What are the benefits of prototyping, What are the benefits of prototyping?...

What are the benefits of prototyping? i. Prototype uses as a basis for deriving system specification. ii. Design quality can be better. iii. System can be handled efficie

Hardware and software requirements - cds - isis software, Hardware and Soft...

Hardware and Software Requirements: The present versions of CDS/ISIS require the following minimum hardware and software:  i)  MS-DOS Version: an IBM PC or Compatible micro

What is affinity diagram, A group process that takes large quantity of lang...

A group process that takes large quantity of language data, like as a list developed by brainstorming, and separates it into categories.

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