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

State the function of functional model, State the function of Functional mo...

State the function of Functional model Functional model: This defines operation which the system must implement. For every operation, from analysis model must be assigned al

Explain cause effect graph, A Boolean graph connecting causes and effects. ...

A Boolean graph connecting causes and effects. The graph is mainly a digital-logic circuit (a combinatorial logic network) by using a simpler notation than standard electronics not

Explain productivity and difficulty, Productivity and difficulty Produ...

Productivity and difficulty Productivity refers to metrics and measures of output from production processes, per unit of input. Productivity P may be conceived of as a metric

What is quality assurance (qa), (1)The planned systematic activities essent...

(1)The planned systematic activities essential to make sure that a component, module, or system conforms to established technical requirements. (2) All actions that are taken to

Illustrate function-oriented metrics, Q. Illustrate Function-oriented metri...

Q. Illustrate Function-oriented metrics? Function-oriented metrics: Function-oriented software metrics utilize a measure of the functionality delivered by an application as a

How many types of traceability in software engineering, How many types of t...

How many types of traceability in software engineering? i. Source traceability - These are generally the links between requirement to stakeholders who suggests these requiremen

What does verification represent, What does Verification represent? Ver...

What does Verification represent? Verification shows the set of activities that are carried out to confirm that the software correctly executes the specific functionality.

Explain equivalent size measure software metrics, Q. Explain Equivalent siz...

Q. Explain Equivalent size measure software metrics? Equivalent size measure:- Models makes no distinction between a new software and the portion being reused. The equivalent

Design black box test suits for a function, Q. Design black box test suits ...

Q. Design black box test suits for a function that checks whether a character or string upto ten characters in a palindrome? Ans Following may be the test cases: - Try wit

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.

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