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

Pl sql, The company wants to offer an incentive of free shipping to those c...

The company wants to offer an incentive of free shipping to those customers who have not returned for two months. Create a procedure named PROMO_SHIP_SP that determines who these c

Program input initiated interpput, what are the basic advantages of using i...

what are the basic advantages of using interrput-initiated data transfer over transfer under progrm control without an interrput

Define the load address for the first word of the program, Define the Load ...

Define the Load address for the first word of the program is known as Load address origin is called as a Load address for the first word of the program

Define product metrics, Normal 0 false false false EN-I...

Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4

What is recovery testing and security testing, What is recovery testing and...

What is recovery testing and Security testing  Recovery testing is system tests that bind the software to fail in a variety of ways and justify that recovery is correctly perf

Testing, cause effect testing

cause effect testing

Explain the concept of decision tables, Explain the concept of Decision Tab...

Explain the concept of Decision Tables Decision table models complex logic into precise yet compact way. A decision table lists causes and effects in a matrix. Every column

What is the advantages of iterative model, What is the advantages of Iterat...

What is the advantages of Iterative model This model is useful when less manpower is available for software development and release deadlines are tight. It's best suited for in

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