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

Explain stress testing, Testing conducted to classify a system or component...

Testing conducted to classify a system or component at or beyond the limits of its described requirements.

Define brooks law, Define Brooks law. Software was delivered late, was ...

Define Brooks law. Software was delivered late, was not reliable, cost various times the original estimates and often exhibited poor performance characteristics.

Determine the importance of software engineering, Importance of Software En...

Importance of Software Engineering As the application domains of software are becoming complicated and design of big software without a systematic method is virtually impossib

Software document, explain software document.create the necessary documents...

explain software document.create the necessary documents for employee management system.

What are different severity ratings in a project, What are different severi...

What are different severity ratings in a project? There can be 4 types of severity ratings in a table: i.) Severity 1 - Showstoppers - Don't allow application to move at

Why winrunner may fail to identify an object on a gui, Why WinRunner may fa...

Why WinRunner may fail to identify an object on a GUI? WinRunner may fail to recognize an object in a GUI in below cases: - If it isn't a standard windows object - If the

Why we use coverage analyzers, Q. Why we use Coverage analyzers? Cover...

Q. Why we use Coverage analyzers? Coverage analyzers (execution verifiers) A coverage analyzer is the most common and important tool for testing. It is often relatively simpl

Determine the structure of design concepts, Structure of design It ...

Structure of design It allows the decomposition of a large system into smaller, more manageable units with well explained relationships to the other units in a system. N

Develop a test case for any under development application, An application w...

An application which is under development. How would you develop a test case for it? When application is under development, Business Requirement Document is used as primary doc

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