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

Describe any types of feasibility study, System Development Life Cycle (SDL...

System Development Life Cycle (SDLC) stages are sometimes known as System Study. System concepts which are important in developing business information systems expedite problem sol

Discuss the various strategies of design, Discuss the various strategies of...

Discuss the various strategies of design.  The design strategies are:      Functional design:   The system is designed from a functional viewpoint, initialising from with a

Define software testing, Define software testing. Software testing is a...

Define software testing. Software testing is a process used to help recognize the correctness, completeness and superiority of developed computer software. With that in mind, t

Explain integration testing, 1. An orderly development of testing in which ...

1. An orderly development of testing in which software elements, hardware elements, or both are joined and tested, to check out their interactions, unless the entire system has bee

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

Simulation and optimization software, A one-car taxi company receives an av...

A one-car taxi company receives an average of 18 calls per day. The receptionist takes down details of the requested journey and relays them to the driver by radio. Each passenger'

What is equivalence partitioning, What is Equivalence Partitioning? Eq...

What is Equivalence Partitioning? Equivalence Partitioning (EP) is the process of methodically decreasing the huge set of possible test cases into a much smaller but still equ

Explain metric, Explain Metric? Ans) The measure of the extent or degree...

Explain Metric? Ans) The measure of the extent or degree to which a product possesses and exhibits a particular quality, property, or attribute.

What is branch coverage, What is Branch coverage? Ans) Test coverage cri...

What is Branch coverage? Ans) Test coverage criteria which needs that for each decision point each possible branch be implemented at least once. Syn: decision coverage. Contrast

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