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

State the process of white box testing, State the process of White box test...

State the process of White box testing White box testing:   This method, also termed as glass box testing, is performed early in testing process.  By using this, software engi

What are the related data items, What are the Related data items Relate...

What are the Related data items Related data items captures details of related attributes. Range of values store total possible values of that data. Data structure definition c

Explain the meaning of throw away prototyping, What is meant by Throw away ...

What is meant by Throw away Prototyping? Giving the user a system which is incomplete and then augmenting and modifying it so that user requirements become clear. The obj

What tasks do checkpoints perform in QTP, What tasks do checkpoints perform...

What tasks do checkpoints perform in QTP? Checkpoints in QTP are used to verify information which is expected to be displayed when running test. Following are 8 types of availa

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

Illustrate about web-testing, Illustrate about web-testing - Web testin...

Illustrate about web-testing - Web testing is software testing concentrating on web applications. - It assists in addressing issues before making the application live to pub

Advantage of prototype software development model, Q What is the advantage...

Q What is the advantage of utilizing prototype software development model instead of waterfall model? As well explain the effect of defining a prototype on the overall cost of the

Compare the manpower and development time, Q. Compare the Manpower and deve...

Q. Compare the Manpower and development time? Manpower may perhaps refer to labour Manpower either an abstract term for human labour effort as opposed to machines, animals a

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