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

Define a macro, "State how you would type arguments h, o, w, n, o, w to the...

"State how you would type arguments h, o, w, n, o, w to the macro cat, define(cat, $1$2$3$4$5$6$7$8$9) so that the printed result was how now Describe exactly what happens when

Given titles IOT/ IOE, Dear Sir/ Madam I have an 8 page essay to be written...

Dear Sir/ Madam I have an 8 page essay to be written how much I pay per page? Thanks

Case study – newsagent shop system, A newsagent shop employs several newspa...

A newsagent shop employs several newspaper deliverers to hand-deliver the morning newspapers to customers' houses. The customers all live fairly close to the shop and the delivere

Creating the field selection table - database definition, Creating the Fiel...

Creating the Field Selection Table (FST) : Entering of data and creating indexes for searching is a very important feature associated with any information storage and retriev

What is the work product of software design process, What is the work produ...

What is the work product of software design process and who does this? A design model that encompasses architectural, interface, component level and their representations is th

What is clear box testing, Clear box testing is the similar as white box te...

Clear box testing is the similar as white box testing. It is a testing approach that consider the application's program structure, and acquires test cases from the application's pr

What is parallel testing, Testing a new or an changed data processing syste...

Testing a new or an changed data processing system with the similar source data that is used in another system. The other system is taken as the standard of comparison.

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