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

SRS, i want to make a case study of any topic of SRS but i am little confus...

i want to make a case study of any topic of SRS but i am little confuse about SRS plz give me Idea how to work in SRS and how to select a model

Use of software package, USE OF SOFTWARE PACKAGE: The concept of appli...

USE OF SOFTWARE PACKAGE: The concept of applications software and were told about software packages and their types. In other words, the discussion implies that instead of wri

Advantages of re-engineering, Advantages of Re-Engineering:- 1)  Reduce...

Advantages of Re-Engineering:- 1)  Reduced risk - there is a huge risk in new software development. There might be development problems, staffing problems and specification pro

What is a vertical microinstruction, What is a vertical microinstruction? ...

What is a vertical microinstruction? Ans) A vertical microinstruction is a microinstruction that states one of a sequence of operations required to carry out a machine language

Define software reliability, Define software reliability. What is the diffe...

Define software reliability. What is the difference between hardware & software reliability? Ans: Software reliability is the possibility that software will provide failure-f

What is infeasible path, Explain Infeasible Path? Program statement sequ...

Explain Infeasible Path? Program statement sequence that can never be implemented.

What is clear box testing, Clear box testing is the similar as white box te...

Clear box testing is the similar as white box testing. It is a testing approach that consider the application's program structure, and acquires test cases from the application's pr

Explain glass box testing, Glass box testing is the similar as white box te...

Glass box testing is the similar as white box testing. It's a testing approach that consider the application's program structure, and derives test cases from the application's prog

Software engineer, Differance b/w Liner sequenrial modal with incremental m...

Differance b/w Liner sequenrial modal with incremental modal

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