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 inspection, Explain Inspection? Ans) An inspection is more forma...

Explain Inspection? Ans) An inspection is more formalized than a 'walkthrough', typically with 3-8 people containing a moderator, reader, and a recorder to take notes. The subje

Management issues in software development, Q. Management Issues in software...

Q. Management Issues in software development? Management Issues:-Project managers typically write the risk management plan and most people don't wish to air their weaknesses in

What is architectural evolution, What is architectural evolution? Archi...

What is architectural evolution? Architectural evolution is the method of changing a system from a centralized architecture to a distributed architecture as client server.

What is maintenance, Define maintenance. Maintenance is defined as the ...

Define maintenance. Maintenance is defined as the procedure in which changes are executed by either modifying the existing system's architecture or by adding new mechanism to t

Extract Caracthers froplat recognition, how to extract the characters from ...

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

Diffrence between structured analysis and structured design, Q. Differentia...

Q. Differentiate between structured analysis and structured design? Ans. The aim of structured examination is to transform the textual description of a problem into a graphic

How is cyclomatic complexity useful in program test, Q. How is cyclomatic c...

Q. How is cyclomatic complexity useful in program test and What is sequence of testing and  What is testability? Ans. Cyclomatic complexity measures the amount of decision lo

What is interface testing, Testing conducted to evaluate whether systems or...

Testing conducted to evaluate whether systems or components pass data and control correctly to one another. Contrast with testing, unit; testing, system. Normal 0

How will you view gui maps in winrunner, How will you view GUI maps in Winr...

How will you view GUI maps in Winrunner? - GUI maps are viewed by using GUI Map Editor - It's located in Tools menu within WinRunner. - It displays all of the GUI Map fil

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