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

Factory method, For this assignment you will create a program called MMWord...

For this assignment you will create a program called MMWordFix (Multi-Mode WordFix). This program prompts the user to select one of three word filters (uppercase, lowercase, encryp

FTR., Formal technical review in railway reservation system

Formal technical review in railway reservation system

Automobile mgmt. system, How do i create the automobile management system p...

How do i create the automobile management system project?

What is quality assurance and standards, What is Quality assurance and stan...

What is Quality assurance and standards? Standards are the key to efficient quality management. They may be international, national, and organizational or project standards.

PERT CHART, WRITE A SHORT NOTE ON PERT CHART

WRITE A SHORT NOTE ON PERT CHART

Srs, Why is SRS document known as black box specification of a system

Why is SRS document known as black box specification of a system

Use of software package, USE OF SOFTWARE PACKAGE: The concept of appli...

USE OF SOFTWARE PACKAGE: The concept of applications software and were told about software packages and their types. In other words, the discussion implies that instead of wri

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

Determine the level 4 of key process areas, Determine the Level 4 of key pr...

Determine the Level 4 of key process areas Level 4 KPAs: 1)      Quantitative Process Management (QP): It states quantitative standards for software process. 2)

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