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 are the fundamental activities of a software process, What are the fun...

What are the fundamental activities of a software process?   Specification  Design and implementation Validation Evolution

Mobile help dack mangmant system, hello there!! I have above subject that I...

hello there!! I have above subject that I have final project and also I required with program

Name the design phase of SDLC, Name the design phase of SDLC Generally,...

Name the design phase of SDLC Generally, design is performed in the below two steps: i)  Primary Design Phase: In this phase, system is designed at block level. Blocks are

Explain the purpose of checkpoints in winrunner, Explain the purpose of che...

Explain the purpose of checkpoints in Winrunner? Checkpoints help to compare behavior of current application to its previous version. There are total of four types of checkpoin

What are white-box and black-box, What are white-box, black-box and gray-bo...

What are white-box, black-box and gray-box testing? White Box (or glass box) testing is the METHOD of giving i/p to the system and checking how the system processes i/p to prod

Explain metric, Explain Metric? Ans) The measure of the extent or degree...

Explain Metric? Ans) The measure of the extent or degree to which a product possesses and exhibits a particular quality, property, or attribute.

What are the aims of analysis modelling, What are the aims of Analysis mode...

What are the aims of Analysis modelling? i. To make apparent what the customer wants. ii. To set up a basis for the creation of software design. iii. To devise a set of v

Software Testing Methodologies, Write a program and identify DU path for Te...

Write a program and identify DU path for Telecom domain

Discuss the problems faced during software maintenance, Q. Discuss the prob...

Q. Discuss the problems faced during software maintenance? The most significant problem during maintenance is that before correcting or else modifying a program the programmer

What is software engineering, What is software engineering? Software en...

What is software engineering? Software engineering is a regulation in which theories, methods and tools are applied to make professional software.

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