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 hybrid testing, Explain Hybrid Testing? Ans) A mixture of top-do...

Explain Hybrid Testing? Ans) A mixture of top-down testing combined with bottom-up testing of prioritized or available components.

Define process specification, Define Process Specification. Process Sp...

Define Process Specification. Process Specification is used to explain all flow model processes that appear at the final level of refinement. Check & Convert pressure Ch

Define the types of requirements management, Define the types of Requiremen...

Define the types of Requirements management Requirements management comprises the below processes: 1. Identifying controls and tracking requirements. 2. Checking complete

Implicit and an explicit conceptual model, What is the difference among an ...

What is the difference among an implicit and an explicit conceptual model?

What are quality management activities, What are Quality management activit...

What are Quality management activities. Quality assurance Establish organisational process and standards for quality. Quality planning Select applicab

Different phases of spiral model, Four Different Phases of spiral model are...

Four Different Phases of spiral model are: 1) Planning  2) Risk analysis 3) Development 4) Assessment

Determine the boundary value analysis, What is a boundary value analysis? ...

What is a boundary value analysis? A boundary value analysis is a testing procedure by which the elements at the edge of the domain are selected and tested. It is a test case d

What is error-based testing, Testing where information about programming st...

Testing where information about programming style, error-prone language constructs, and other programming knowledge is functional to select test data capable of detecting faults, e

Explain requirement issues in software risks, Q. Draw the flow chart of Ris...

Q. Draw the flow chart of Risk Management-Activity and explain various Software risks. Ans RISK is a problem that could cause a few loss or threatens the success of the proje

What is process analysis and modelling, What is Process analysis and modell...

What is Process analysis and modelling? Process analysis The study of existing processes to understand the relationships among parts of the process and to compare them

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