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

Project, hello, i am struggling with my final year project and i dont have ...

hello, i am struggling with my final year project and i dont have that huge amount of time to do it??

Explain the structured requirements definition, Explain the Structured Requ...

Explain the Structured Requirements Definition Structured Requirements definition is an approach to perform study about complete system and its various sub-systems, external ou

Explain in detail the design concepts, Explain in detail the design concept...

Explain in detail the design concepts Abstraction Data abstraction Functional abstraction  •Control abstraction Information hiding •Every module in the s

Explain functional testing, Functional testing is black-box type of testing...

Functional testing is black-box type of testing geared to functional needs of an application. Test engineers *should* do functional testing.

What are the important points to do software design, What are the important...

What are the important points to do software design The below points must be kept in mind when performing the design:  i) Practicality: This ensures that system is stable

What is path analysis, What is Path Analysis? Ans) Program analysis perf...

What is Path Analysis? Ans) Program analysis performed to identify all possible paths through a program, to detect incomplete paths, or to discover portions of the program that

Explain about special value testing, Q. Explain about Special Value Testing...

Q. Explain about Special Value Testing? Special Value Testing is the form of functional testing. Special value testing take places when a tester uses his or her domain knowle

What is system, A set of people, machines, and methods prepared to accompli...

A set of people, machines, and methods prepared to accomplish a set of specified functions.

What is function points, A consistent measure of software size based on use...

A consistent measure of software size based on user needs.

Application design - micro cds-isis software, Application Design: Micr...

Application Design: Micro CDS/ISIS is a text oriented software package. It is a good , ho ice if one wishes to store textual data, retrieve the data by certain criteria, and d

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