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 is branch coverage testing, A test method satisfying coverage criteria...

A test method satisfying coverage criteria that needs each decision point at every possible branch to be implemented at least once.

Need of data dictionaries, Objectives of Data dictionaries:- 1) A stand...

Objectives of Data dictionaries:- 1) A standard definition of every terms in a system that is each item of data is uniquely identified and defined. 2) Simple cross-referenci

Cohesion, Identify the type of cohesion in the following statements: 1. Co...

Identify the type of cohesion in the following statements: 1. Compute average daily temperatures at various sites 2. Initialize sums and open files 3. Create new temperature recor

State the term- enginnering the product, Enginnering the product Becaus...

Enginnering the product Because of complexity involved in software development, engineering approach is being used in software design. Use of engineering approach in area of re

Illustrate evolutionary prototyping, Illustrate Evolutionary prototyping ...

Illustrate Evolutionary prototyping Objective: The main objective of this model is to show the working system to the end-user. Example-AI systems. Advantages

State in brief about evolutionary prototyping, Explain Evolutionary prototy...

Explain Evolutionary prototyping Objective: The principal objective of this model is to deliver the working system to the end-user. Example-AI systems. Advant

Project tracking, project tracking and overview of project process?

project tracking and overview of project process?

What is regression testing, What is regression testing? Regression test...

What is regression testing? Regression testing is the re-execution of some subject texts that have already been conducted to make sure that changes have not propagated unintend

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

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