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

Feasibility analysis report, Aim to follow the weekly schedule - some time ...

Aim to follow the weekly schedule - some time in each tutorial class will be devoted to working in your teams of two under the guidance of your tutor on this project.  However, te

What is requirement traceability matrix, Requirement traceability matrix ...

Requirement traceability matrix RTM is a matrix tying up needs with the testcases. It is a way of making sure that each requirement has a corresponding testcase which will be t

Explain any ten case tools, Question 1 Explain black box and white box tes...

Question 1 Explain black box and white box testing techniques Question 2 Explain different roles of the software development? Question 3 List out different project

Define traceability, Define Traceability Traceability is the overall...

Define Traceability Traceability is the overall property of requirements specification which reflects the easiness of finding related requirements. Three different parts

What is meaning of attributes, Attributes   Attribute is a characteri...

Attributes   Attribute is a characteristic or property of an entity which is of interest to the organisation. It's represented by oval shaped box with name of attribute writt

List the principles of a software design, List the principles of a software...

List the principles of a software design. i. The design process should not suffer from "tunnel vision". ii. The design should be traceable to the analysis model. iii. The

What are the common approaches in debugging, What are the common approaches...

What are the common approaches in debugging? Brute force method: The memory dumps and run-time tracks are explained and program with write statements is loaded to get clues to

Software testing, 1. Answer the following questions for the method search()...

1. Answer the following questions for the method search() below: public static int search (List list, Object element) // Effects: if list or element is null throw NullPointerExcept

Types of software organization, How many types of software organization? Ex...

How many types of software organization? Explain each organization style with a suitable example? What are the factors that influence the group? Write short notes on the stak

What is unit testing explain, Q. What is Unit testing explain ? Unit t...

Q. What is Unit testing explain ? Unit testing: Unit testing is undertaken after a module has been coded and successfully reviewed. Unit testing (or module testing) is the te

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