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

Describe about the incremental model, Explain about the incremental model. ...

Explain about the incremental model. Have similar phases as the waterfall model. Phases are Analysis. Design. Code. Test. Incremental model delivers

Operating systems, Compare and contrast two operating systems

Compare and contrast two operating systems

What is cmmi assessment, What is CMMI assessment? Examines the processe...

What is CMMI assessment? Examines the processes used in an organisation and assesses their maturity in every process area. Based on a 6-point scale: Not performed;

Explain performance testing, Performance testing signifies loads, volumes, ...

Performance testing signifies loads, volumes, and response times, as described by requirements. Although performance testing is a part of system testing, it can be regarded as a ex

Outsourcing, Discuss how your own organization can take advantage of outsou...

Discuss how your own organization can take advantage of outsourcing its IT systems/functions. In your discussion state what can be outsourced and what benefit will be gained. Do yo

Define coupling and discuss various types of coupling, Define coupling and ...

Define coupling and Discuss various types of coupling? Define coupling. Discuss various types of coupling. Ans: A Coupling is the measure of the degree of interdepende

State the requirements analysis of SDLC, Requirements Analysis of SDLC ...

Requirements Analysis of SDLC Requirements describe "What" of a system. Objectives which are to be achieved in Software process development are requirements. In requirements a

Determine the structure of design concepts, Structure of design It ...

Structure of design It allows the decomposition of a large system into smaller, more manageable units with well explained relationships to the other units in a system. N

What is test log, What is Test log? A chronological record of all releva...

What is Test log? A chronological record of all relevant details about the implementation of a test.

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