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

What are the testing strategies for conventional software, What are the var...

What are the various testing strategies for conventional software? i. Unit testing ii. Integration testing. iii. Validation testing. iv. System testing.

What do you mean by core dumps, Q. What do you mean by Core dumps? Core...

Q. What do you mean by Core dumps? Core dumps are a repairing technique. A printout of all applicable memory locations is obtained and studied. All dumps must be well documente

Behavioral analysis model, Behavioral Analysis Model The Behavioral ...

Behavioral Analysis Model The Behavioral analysis is an operational technique for all requirement analysis techniques. When a sensor event is recognized the software invokes

Discuss software characteristics, Q. Discuss any two software characteristi...

Q. Discuss any two software characteristics. Ans. Software is not manufactured : The life of software is start from concept exploration to the retirement of the software prod

Software licesnse, what are the main characteristics of software lease

what are the main characteristics of software lease

Distinguish between alpha and beta testing, Distinguish between alpha and b...

Distinguish between alpha and beta testing.  Alpha and beta testing are the types of acceptance testing.  Alpha test: The alpha testing is attesting in which the version o

Software Metircs, I have a comprehensive question for Software Metrics ...i...

I have a comprehensive question for Software Metrics ...it is 16 question

Explain rad model, RAD Model Rapid Application Development Model is...

RAD Model Rapid Application Development Model is the part of incremental model. Achieves the high speed development using component based construction. Phases

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