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

Explain incremental testing, Incremental integration testing is permanent t...

Incremental integration testing is permanent testing of an application as new functionality is recommended. This may need that various aspects of an application's functionality are

Software design by using stacks and queues, Instructions: For this assignm...

Instructions: For this assignment, you will be using stacks and queues to solve a maze in a couple of different ways. You are supplied with code to start you off. When run, it ope

Describe the method of technical documentation, Describe the method of Tech...

Describe the method of Technical documentation This usually comprises: - Program listing/coding -  Programming language(s) used  - Algorithm/Flowchart -  Purpose o

Project or process, Mentoring a class at a university. is project or proce...

Mentoring a class at a university. is project or process??

Hardware and software requirements - cds - isis software, Hardware and Soft...

Hardware and Software Requirements: The present versions of CDS/ISIS require the following minimum hardware and software:  i)  MS-DOS Version: an IBM PC or Compatible micro

Explain the activities of software maintenance, The activities of software ...

The activities of software maintenance Software maintenance is a broad activity that contains error correction, increasing of capabilities, deletion of obsolete capabilities an

What is test objective, An identified set of software features to be calcul...

An identified set of software features to be calculated under specified conditions by comparing actual behavior with the needed behavior described in the software documentation.

Different type of testing tools, Different type of testing tools. (a) T...

Different type of testing tools. (a) Test Case Generators: (b) Capture/ Playback and Test harness tools: (c)  Coverage Analysis Tools: (d) Test Comparators e) Memor

Find the degree of capability of software reliability model, Q. Define capa...

Q. Define capability. What are the quantities that determine the degree of capability of a software reliability model? Ans: Capability demotes to the ability of the model to

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