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

Draw an entity relationship diagram, Problem: (a) Draw an Entity Relat...

Problem: (a) Draw an Entity Relationship Diagram for the given case study. Show entities and relationships on the diagram (attributes should not be shown). Cardinality and op

What is quality control, What is quality control? Ans) Quality control m...

What is quality control? Ans) Quality control means to preserve the quality of product by measuring their content , different physical parameters.

Transform maping., using a dfd and a processing narrative,describe computer...

using a dfd and a processing narrative,describe computer based system that can distinct transform flow characteristics.Define flow boundaries map the dfd into a software architectu

Define quality control, Explain Quality control This includes checking ...

Explain Quality control This includes checking the software development process to make sure that procedures and standards are being followed. There are two approaches to qu

What is iso 9000 certification, What is ISO 9000 certification? Qualit...

What is ISO 9000 certification? Quality standards and procedures should be recognized in an organisational quality manual An external body may confirm that an organisation'

Explain evolutionary development model, Evolutionary Development model. ...

Evolutionary Development model.  Evolutionary Development Model : Evolutionary development model resembles iterative enhancement model. The similar phases as defined for the w

What is risk assessment, What is Risk Assessment? Ans) A associated impa...

What is Risk Assessment? Ans) A associated impact and its comprehensive evaluation of the risk

Explain exhaustive testing, Implementing the program with all possible comb...

Implementing the program with all possible combinations of values for program variables. Feasible only for small, simple programs.

Hatley pirbhai, what is hatley pirbhai extension and what is its use

what is hatley pirbhai extension and what is its use

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