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

SYSTEM ANALAYSIS AND DESIGN , #questionHomes R Us is a group of large depar...

#questionHomes R Us is a group of large department stores who wish to improve the customer service they decide they need a database to capture and store information relating to cus

Explain rad model, RAD Model Rapid Application Development Model is ...

RAD Model Rapid Application Development Model is the method of incremental model. Achieves the high speed development using component based construction. Phases

What are task regions in the spiral model, What are task regions in the Spi...

What are task regions in the Spiral model. Customer communication - In this region it is recommended to establish customer communication. Planning - All planning doings are

SOFTWARE, EXPLAIN COMPONENTS OF DATABASE MANAGEMENT

EXPLAIN COMPONENTS OF DATABASE MANAGEMENT

Normalization, normalization Explain its forms in brief

normalization Explain its forms in brief

Explain the incremental model, Explain the Incremental Model Iterative ...

Explain the Incremental Model Iterative and Incremental Models follow more or less the similar approach. Incremental Model is an intuitive approach to the waterfall model. Mult

Application design - micro cds-isis software, Application Design: Micr...

Application Design: Micro CDS/ISIS is a text oriented software package. It is a good , ho ice if one wishes to store textual data, retrieve the data by certain criteria, and d

Final Year Project Help, I am currently working on a project and am far fro...

I am currently working on a project and am far from passing, I need help ASAP! The project task is to create a Decision support system for An Airline. It must predict and make de

Explain capability maturity model, CAPABILITY MATURITY MODEL (CMM): CMM is...

CAPABILITY MATURITY MODEL (CMM): CMM is a strategy for recovering the software process, irrespective of the actual life cycle model used.

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