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

What is stress testing and performance testing, What is stress testing and ...

What is stress testing and performance testing? A stress testing executes a system in a way that demands resources in abnormal quantity, volume or frequency. Performance te

Write short note on black box testing, Write short note on black box testin...

Write short note on black box testing. The black box testing is also known as behavioural testing. This method fully focuses on the functional requirements of the software. Te

What is meant by data dictionary, What is meant by Data dictionary? The...

What is meant by Data dictionary? The Data dictionary is a prepared listing of all data elements that are pertinent to the system, with precise, rigorous explanations so that b

Explain structure-based testing techniques, Explain Structure-based testing...

Explain Structure-based testing techniques - Structure-based testing methods are also termed as white-box testing techniques. - These are dynamic methods. - They use the

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?

Explain token count, Token count: -  A program is considered to be series o...

Token count: -  A program is considered to be series of tokens and if we count the number of tokens, some interesting results might be emerge. Tokens are classified as either opera

Explain norman''s seven stages of action, Question: (a) Explain, using...

Question: (a) Explain, using an example, Norman's Seven Stages of Action. (b) You are working for a software development firm. You have been requested by your team leade

What are the benefits of using stored procedures, What are the benefits of ...

What are the benefits of using Stored Procedures? - They help in reducing network traffic and latency which in turn boosts application performance. - They assist in promotin

What are the tools of environmental model, What are the Tools of environme...

What are the Tools of environmental  model (i)  Statement of purpose: It indicates basic objectives of system. (ii)  Event list: It describes different events of system

Simulation and optimization software, A one-car taxi company receives an av...

A one-car taxi company receives an average of 18 calls per day. The receptionist takes down details of the requested journey and relays them to the driver by radio. Each passenger'

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