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

Analysis and design techniques - unified modeling language, Case Study: ...

Case Study: LHM is a London based privately owned hospital which provides healthcare to its patients.  The hospital uses in-house software to manage and service its patients whi

Differentiate between circuit switching and packet switching, Question: ...

Question: (a) Differentiate between circuit switching and packet switching. (b) Using an example, explain the main parts that form a URL (Uniform Resource Locator). (c)

What are business process engineering tools, What are business process engi...

What are business process engineering tools? By modeling the strategic information needs of an organization, business process engineering tools give a "meta-model" from which e

Advantage of software package, Advantage of software package: Advantag...

Advantage of software package: Advantages accrue from this situation. Some of these are mentioned below:  i)  An efficient software package requires at least 4 to 5 man yea

Text retrieval packages - softare packages, Text Retrieval Packages: T...

Text Retrieval Packages: Text retrieval comprises storage and subsequent retrieval of rat girds, essentially textual rather than numerical, tabular or graphical. Although, eac

SOFTWARE, EXPLAIN COMPONENTS OF DATABASE MANAGEMENT

EXPLAIN COMPONENTS OF DATABASE MANAGEMENT

Explain structure-based testing techniques, Explain Structure-based testing...

Explain Structure-based testing techniques - Structure-based testing methods are also termed as white-box testing techniques. - These are dynamic methods. - They use the

Incremental model, four circumstances where incremental model is appropriat...

four circumstances where incremental model is appropriate?

Define the design phase of SDLC, Define the Design phase of SDLC In th...

Define the Design phase of SDLC In this stage, a logical system is built which fulfils given requirements. Design phase of software development deals with transforming custome

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