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

Mention the factors to be considered during system modelling, Mention some ...

Mention some of the factors to be considered during System Modeling. Simplifications Assumptions Constraints

What are the main objectives of reverse engineering, Q. Define Reverse Engi...

Q. Define Reverse Engineering? What are the main objectives of reverse engineering? Ans: The reverse engineering is the procedure of generating representations that are imple

Software Metrics, How to interpret software metrics(any metrics)...i need a...

How to interpret software metrics(any metrics)...i need an example

What is system engineering, What is System Engineering? System Engineer...

What is System Engineering? System Engineering means designing, executing, deploying and operating systems which contain software, hardware, and people.

Iterative enhancement model, Iterative Enhancement Model Iterative Enha...

Iterative Enhancement Model Iterative Enhancement Model: This model has the similar phases as the waterfall model, but with fewer restrictions. Normally the phases happen in th

SRS, IMPORTANT ISSUES SRS MUST ADRESS

IMPORTANT ISSUES SRS MUST ADRESS

Disadvantage of lines of code, Q. Disadvantage of lines of code? 1. Lac...

Q. Disadvantage of lines of code? 1. Lack of Accountability: Lines of code measure suffers from some fundamental problems. A few think it isn't useful to measure the productivi

Implementing an erp system at hawkins cookers ltd, Question : (a) What ...

Question : (a) What are the main characteristics of an ERP system? List the benefits and disadvantages of implementing an ERP system at Hawkins Cookers Ltd. (b) Explain the

Describe system testing, Q. Describe system testing? Ans. System testi...

Q. Describe system testing? Ans. System testing: System test are designed to validate a completely developed systems with a view to assuring that it meets its requirements

How do software myths affect a software process, Q 1 Define a software proc...

Q 1 Define a software process. How do software myths affect a software process? Ans: A Software process is a Coherent set of activities for designing, specifying, implementin

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