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

Whta is boundary value analysis, Boundary Value Analysis:    It's widely ex...

Boundary Value Analysis:    It's widely examined that input values at the extreme ends of input domain cause more errors in system. More application errors happen at the boundaries

Explain the process of black box testing, Explain the process of Black box ...

Explain the process of Black box testing  This is applied during the later stage of testing.  It enables software developer to derive a set of input conditions which will fully

Define the estimation models, Write short notes on estimation models. E...

Write short notes on estimation models. Empirical estimation models can be used to complement decomposition techniques and present a potentially important approach in their own

Recreating Sections of Google+ in C, Create a compound data type called Pos...

Create a compound data type called Post to store messages posted on Google+. Post should include: Name / Data Type / Description date / char [9] / date fields for

Mention some of the notations for requirements specification, Mention some ...

Mention some of the Notations for requirements specification. Structured natural language: Use standard Templates or form. Design description language: Programming langua

The various steps of the reuse-oriented model, Describe the various steps o...

Describe the various steps of the reuse-oriented model.  The reuse-oriented model, also known as reuse-oriented development (ROD), is a method of software development in which

State about the build and fix model, Build and Fix Model It's a simple...

Build and Fix Model It's a simple two phase model. In one phase, code is developed and in another, code is fixed. Figuredepicts the Build and Fix model.

Define data dictionary, Define Data Dictionary The data dictionary can ...

Define Data Dictionary The data dictionary can be explained as an organized collection of all the data elements of the system with precise and rigorous definitions so that user

Illustrate the symbols of a data flow diagram, Symbols of a data flow diagr...

Symbols of a data flow diagram  1. Data Flow Signifies the connectivity between various processes 2. Process   Performs some processing of input data 3. Ex

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