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 reverse engineering, REVERSE ENGINEERING :- It is a process of exa...

REVERSE ENGINEERING :- It is a process of examining software with a view to understanding its design and specification. In this, source code and portable code are the input

Differentiate between circuit switching and packet switching, Question: ...

Question: (a) Differentiate between circuit switching and packet switching. (b) Using an example, explain the main parts that form a URL (Uniform Resource Locator). (c)

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.

What is validation represent, What is Validation represent? Validation ...

What is Validation represent? Validation means a set of deeds that ensure that the software that has been built to satisfy the customer requirements.

Describe the various types of coupling, Describe the various types of coupl...

Describe the various types of coupling? i. Data coupling - The data coupling is possible by parameter passing or data interaction. ii. Control coupling - The modules share c

Describe bottom-up and top-down approaches, How do you develop a test plan ...

How do you develop a test plan and schedule? Describe bottom-up and top-down approaches. A test plan is contract among the testers and the project team explaining the role of t

Characteristics of an embedded system, Question: a) Draw a diagram show...

Question: a) Draw a diagram showing the parts of an embedded system. b) Give the definition of an Embedded Computer. c) Discuss the similarities and differences between a

What is the aim of testing, In well-run projects, the mission of the test t...

In well-run projects, the mission of the test team is not merely to perform testing, but to help decrease the risk of product failure. Testers look for manifest problems in the pro

Software myth, how does software myth affects software process

how does software myth affects software process

How many types of metrics, What are the types of metrics? Direct metric...

What are the types of metrics? Direct metrics - It refers to immediately measurable attributes. Example -Execution speed, Lines of code. Indirect metrics - It refers to the

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