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 is regression testing, Regression testing It is the re-execution o...

Regression testing It is the re-execution of some subset of tests that have already been conducted to make sure the changes that have not been propagated unintended side effect

What is sei capability maturity model, What is SEI capability maturity mode...

What is SEI capability maturity model? Initial Essentially uncontrolled Repeatable Product management procedures explained and used Defined Proc

Define system modeling, Define System Modeling? Explain the processe...

Define System Modeling? Explain the processes that serve requirements of the view under consideration. Shows the behaviour of the processes and the assumptions on which t

What are the rules for making DFD, What are the Rules for making DFD   ...

What are the Rules for making DFD   The below factors must be considered when making DFDs:  1.   Keep a note of all processes and external entities. Give unique names to th

How do we zero down on automation tools, How do we zero down on automation ...

How do we zero down on automation tools for regression testing? Below criteria are used when zeroing down on automation tools for regression testing: - Risk analysis such as

Draw the context level dfd for the safe home software, Draw the Context lev...

Draw the Context level DFD for the Safe home Software. User commands Alarm type Telephone Number tone Sensor status Display Information

Explain sanity testing, Sanity testing is performed whenever cursory testin...

Sanity testing is performed whenever cursory testing is sufficient to show the application is functioning according to specifications. This level of testing is a subset of regressi

What is oo integration testing, This strategy includes testing the classes ...

This strategy includes testing the classes as they are integrated into the system. The traditional approach would test every operation separately as they are executed into a class.

What is process and product quality, What is Process and product quality? ...

What is Process and product quality? The quality of a developed product is influenced by the quality of the production process. This is significant in software development

Srs, ? A store is in the business of selling paints and hardware items. A n...

? A store is in the business of selling paints and hardware items. A number of reputed companies supply items to the store. New suppliers can also register with the store after pro

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