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

List any characteristics of a good srs, List any three characteristics of a...

List any three characteristics of a good SRS. Ans:The SRS should be: Correct , Unambiguous, Complete 1. Correct: An SRS is correct if each requirement stated therein is on

Describe the main categories of e-commerce, Question 1: (a) A company w...

Question 1: (a) A company wishes to under-go a Business Process Re-engineering activity with respect to its core business processes. Explain the extent to which MIS could be

Assignment projects, I want to make assignements regarding software enginee...

I want to make assignements regarding software engineering.

What is a variant, What is a variant Ans) "Variants" are versions of a p...

What is a variant Ans) "Variants" are versions of a program.

Different characteristics of software measures, Different characteristics o...

Different characteristics of software measures Different characteristics of software measures identified by Basili (1989) are given below: • Objects of measurement: They i

Explain logarithmic poisson execution time model, Q. Explain Logarithmic Po...

Q. Explain Logarithmic Poisson Execution Time Model? This model is as well developed by Musa et Al (MUSA79). The breakdown intensity function is different here as compared to B

Write definition of erd, Write definition of ERD? Entity Relationship D...

Write definition of ERD? Entity Relationship Diagram shows the graphical presentation of the object relationship pair. It is above all used in database applications.

Static testing tools and dynamic testing tools, Static testing tools: 1...

Static testing tools: 1. Static analysers   2. Code inspectors  3. Standard Dynamic testing tools   1. Coverage analyzers (execution verifiers)    2. Output co

What are the advantages of smoke testing, What are the benefits of smoke te...

What are the benefits of smoke testing? Integration risk is decreased. The quality of the end-product is getting better. Error diagnosis and correction are simplified. Assessme

Define software prototyping, Define software prototyping. Software prot...

Define software prototyping. Software prototyping is explained as a rapid software development for validating the requirements.

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