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

Describe briefly the idea behind the gqm paradigm, Problem: (a) Define ...

Problem: (a) Define measurement and briefly summarize the representation condition for measurement. (b)  Software metrics is a term that embraces many activities, all of whi

State in detail about the software design, State in detail about the Softwa...

State in detail about the Software design Software design is the core of software engineering process and first of three important technical activities that are design, coding,

What is maintenance, Define maintenance. Maintenance is defined as the ...

Define maintenance. Maintenance is defined as the procedure in which changes are executed by either modifying the existing system's architecture or by adding new mechanism to t

Full form of fast, FAST stands for :- FAST :- Facilitated Application...

FAST stands for :- FAST :- Facilitated Application Specification Technique

What is pure and impure interpreter, what is interpreter explain pure and i...

what is interpreter explain pure and impure interpretion

Post-production design feedback for future designs, Q. Post-production desi...

Q. Post-production design feedback for future designs ? Post-production design feedback for future designs Implementation it is introducing the designed solution into

What is a technical analyst, What is A Technical Analyst? Ans) Technical...

What is A Technical Analyst? Ans) Technical Analysts perform test assessments and validate system/functional test needs. Depending on the project, single person might wear more

List the guidelines for data design, List the guidelines for data design. ...

List the guidelines for data design. i. Apply systematic analysis on data. ii. Determine data structures and related operations. iii. Establish data dictionary. iv. Us

Application design - micro cds-isis software, Application Design: Micr...

Application Design: Micro CDS/ISIS is a text oriented software package. It is a good , ho ice if one wishes to store textual data, retrieve the data by certain criteria, and d

What is software maintenance and cocomo model, What is software maintenance...

What is software maintenance? Software maintenance is a set actions in which program are customized after it has been put into use. COCOMO model :- COnstructive COst MOd

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