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 operational testing, Describe Operational Testing? Ans) Testing ...

Describe Operational Testing? Ans) Testing done by the end user on software in its normal operating environment.

Legacy Challenge, What is the Legacy Challenge in Software Engineering?

What is the Legacy Challenge in Software Engineering?

Event management information system in uml, Company Universal Consulting is...

Company Universal Consulting is a large consulting firm that specializes in IT consulting services for the Healthcare industry. The company employs over 2,000 dedicated IT professi

Software testing, Discuss the limitations of software testing. How do we sa...

Discuss the limitations of software testing. How do we say that complete testing is impossible?.

Draw an entity-relationship model, (a) Draw an Entity-Relationship model f...

(a) Draw an Entity-Relationship model for the relational schema given in the Appendix. Show all the entities, relationships, relationship names, and attributes and also underline

What are the drawbacks of rad model, Mention some of the drawbacks of RAD m...

Mention some of the drawbacks of RAD model. Unuseful for a large-scale projects. Interest of developers & customers are necessary. Not useful and perfect when technica

Which type of software must not be automated, Which type of software must n...

Which type of software must not be automated? Following types of software must not be automated: - Incomplete/Unstable software since they are still undergoing changes -

What is evolutionary prototype, Evolutionary Prototype In this, prot...

Evolutionary Prototype In this, prototype is constructed to learn about software problems and their solutions in successive steps. Prototype is initially developed to satisf

State lehmans first law, State Lehman's First law. A program that is u...

State Lehman's First law. A program that is used in true world environment essentially must change or become progressively less useful in that environment.

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