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 about rapid prototyping techniques, Explain about rapid prototyping...

Explain about rapid prototyping techniques. Executable specification languages. Used to living the system specification. It is expressed in a formal, mathematical la

What is software maintenance, What is software maintenance? Changes to...

What is software maintenance? Changes to the software are made in response to altered requirements but the fundamental structure of the software remains stable.

Describe basic steps in software cost estimation, Question: (a) Describ...

Question: (a) Describe fully the first five basic steps in software cost estimation. (b) What are the main differences between COCOMO1 and COCOMO2 cost estimation models?

Some important steps while doing testing, Some Important Steps while doing ...

Some Important Steps while doing performing testing The below objectives are to be kept in mind when performing testing: i)  It should be done with the intention of finding

Discuss in detail about delphi method, Discuss in detail about Delphi Metho...

Discuss in detail about Delphi Method. Procedure The co-ordinator represents a specification and assessment form to each expert. Co-ordinator calls a group discussion

Why is quality assurance difficult in software engineering, Question: (...

Question: (a) Why is quality assurance especially difficult in software engineering ? (b) Inspiring yourself from the McCall's taxonomy of quality attributes, explain five

Explain the reuse maintenance model, Explain the reuse maintenance model wi...

Explain the reuse maintenance model with the help of a diagram. Reuse maintenance model: This model is based on the principal  that maintenance could be viewed as an activity i

Testing, What is software testing?

What is software testing?

What is desk checking, What is Desk Checking? Ans) A type of manual stat...

What is Desk Checking? Ans) A type of manual static analysis usually performed by the originator. Source code documentation, etc., is visually checked against needs and standard

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