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

Nature and types of softare packages, NATURE AND TYPES OF SOFTARE PACKAGES:...

NATURE AND TYPES OF SOFTARE PACKAGES: Software packages are commercially supplied products which typically provide solutions to a particular range of software development or a

Question, why are older data models are being replaced by new data models

why are older data models are being replaced by new data models

Explain the design principles, Explain the design principles. The d...

Explain the design principles. The design process should not endure from tunnel vision. The design should be traceable to the analysis model. Design should not re

Define fan-in and fan-out, Define Fan-in & Fan-out. Fan-out - A measure...

Define Fan-in & Fan-out. Fan-out - A measure of the number of modules that are directly controlled by another module. Fan-in-  Shows how many modules directly control a give

Determine the software testing, What is software testing The testing pr...

What is software testing The testing process focuses on the logical internals of the software, ensuring that all statements have been tested, and on the functional externals, t

What is structured programming and why is it important, What is structured ...

What is structured programming and why is it important? Structured programming is a programming which was coined in the late 1960's to mean programming without using go to stat

Define black box testing strategy, Define black box testing strategy. B...

Define black box testing strategy. Black box testing describes the functional requirements of the software. Test cases are determined on the basis of the requirements or specif

Calculate the development time, Q. Assuming the Putnam model and given S = ...

Q. Assuming the Putnam model and given S = 100,000 C = 5000 and D 0 = 15 calculate the development time t d.  Ans: In Putnam model (S/C ) 3 = D 0 t d 7 lhs = 20

SAD Design Phase, describe normalization & its forms? plz i m very thankful...

describe normalization & its forms? plz i m very thankful.......

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