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

Programming, Write a C program that reads in three integers and then determ...

Write a C program that reads in three integers and then determines and print the largest and smallest integer among them.

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

What is closed box testing, Closed box testing is similar as black box test...

Closed box testing is similar as black box testing. Black box testing a type of testing that examine only externally visible behavior.

What is transform mapping, What is Transform mapping? The transform map...

What is Transform mapping? The transform mapping is a set of design steps applied on the DFD in order to map the transformed flow characteristics into exact architectural style

Different type of testing tools, Different type of testing tools. (a) T...

Different type of testing tools. (a) Test Case Generators: (b) Capture/ Playback and Test harness tools: (c)  Coverage Analysis Tools: (d) Test Comparators e) Memor

Code restructuring, Ask quewhat is code restructuringstion #Minimum 100 wor...

Ask quewhat is code restructuringstion #Minimum 100 words accepted#

Explain the software measurement, Define software measurement. A softw...

Define software measurement. A software measurement is a procedure or way that applies software measures to a class of software engineering objects to achieve a predefined goa

What are repositories used by qtp to store object properties, What are repo...

What are repositories used by QTP to store object properties? QTP uses two kinds of repositories to store object properties. a.) Shared object repository: A global object

Network Technology, How can you create a file named -i? Which techniques do...

How can you create a file named -i? Which techniques do not work, and why do they not work? How can you remove the file named -i?

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