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

Reverse engineering, explain the effect of reverse engineering of software ...

explain the effect of reverse engineering of software development #

Why we need restructuring techniques, Q. Why we need restructuring techniqu...

Q. Why we need restructuring techniques? The restructuring helps in maintaining a program in the following ways: (a) Programs have higher excellence better documentation l

What is a software package, QUESTION a) What is a software package? ...

QUESTION a) What is a software package? b) A lot of data is collected and stored on digital medium today. Organisations rely a lot on the data for their smooth running. Desc

P, a simple text processing program with all essential functions (open and ...

a simple text processing program with all essential functions (open and save text documents, insert and delete text, search for words). We assume that text read from a file is stor

How does the risk factor affect the spiral model, How does the risk factor ...

How does the risk factor affect the spiral model of software development? Ans: Risk Analysis phase is the most significant part of "Spiral Model". In this phase all possible (a

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

Software quality and testing issues, Software quality and testing issues: ...

Software quality and testing issues: The aim of this assignment is to enable students to conduct an in-depth research on software quality and testing issues. Software Quality

Explain the information flow continuity, What is meant by Information flow ...

What is meant by Information flow Continuity? When we refine a fundamental model for a system, the information flow continuity should be maintained .ie, input & output to each

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