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

Calculate the peak manning time, Q. Consider a project for which the manpow...

Q. Consider a project for which the manpower requirement is 200 PY and the development time is 2 years. calculate the peak manning time. Ans Software Project cost K=200 PY

Define the structural testing, Q. Define the Structural Testing? For a ...

Q. Define the Structural Testing? For a moment it called white-box testing. At this point derivations of test cases are according to the program structure. Knowledge of the pro

Define design process, Define design process. Design process is a seque...

Define design process. Design process is a sequence of steps carried by which the requirements are translated into a system or software model.

The spiral model of software development, The spiral model of software deve...

The spiral model of software development Contains project risks evaluation during every iteration

Distinguish between verification and validation, Distinguish between verifi...

Distinguish between verification and validation. Verification refers to the set of activities that make sure that software correctly executes a specific function. Validation re

Implementing an erp system at hawkins cookers ltd, Question : (a) What ...

Question : (a) What are the main characteristics of an ERP system? List the benefits and disadvantages of implementing an ERP system at Hawkins Cookers Ltd. (b) Explain the

Name some common software standards, Name some Software Standards Num...

Name some Software Standards Numerous terms related to software engineering are regularly standardised by organisations like IEEE (Institute of Electrical and Electronics Engi

P, a simple text processing program with all essential functions (open and ...

a simple text processing program with all essential functions (open and save text documents, insert and delete text, search for words). We assume that text read from a file is stor

Computer science, Write a report that explains the agile principles for rap...

Write a report that explains the agile principles for rapid software development, and recommend and justify an appropriate method for adoption.

Star topology, where star topology used in daily life

where star topology used in daily life

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