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

Define data dictionary, Define Data Dictionary. The data dictionary is ...

Define Data Dictionary. The data dictionary is defined as an organized collection of all the data elements of the system with accurate and rigorous definitions so that user and

Mention some of the design principles, Mention some of the Design principle...

Mention some of the Design principles. The design process should not vary from tunnel vision. The design should not reinvent the wheel. The Design should exhibit unifo

What are the objectives of analysis modelling, What are the objectives of A...

What are the objectives of Analysis modelling? i. To explain what the customer requires. ii. To establish a basis for the creation of software design. iii. To devise a se

What are version management tools, What are Version management tools? ...

What are Version management tools? Version and release identification Systems assign identifiers automatically when a new version is submitted to the system. St

Show the different levels of cmm, Q. Show the Different levels of CMM? ...

Q. Show the Different levels of CMM? 1) Initial (maturity level 1)- At this the lowest level there are fundamentally no sound software engineering management practices in plac

When must a function throw an exception, When must a function throw an exce...

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

What is the aim of testing, In well-run projects, the mission of the test t...

In well-run projects, the mission of the test team is not merely to perform testing, but to help decrease the risk of product failure. Testers look for manifest problems in the pro

Explain the important characteristics of a dmz, Question: a) A firewall...

Question: a) A firewall will be classified according to which layer of the OSI model the protection is at. Using this classification, explain the different types of firewalls.

Discuss about throw-away prototyping, Discuss about Throw-away prototyping ...

Discuss about Throw-away prototyping Objective: The principal aims of this model is to validate or to gain the system requirements. It is developed to minimise requi

Modified er diagram representing cardinalities, Modified ER diagram represe...

Modified ER diagram representing cardinalities When minimum cardinality of a relationship is one, then second entity is known as mandatory participant in the relationship. Ma

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