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

Explain the idea behind albrecht''s function points measure, Question: ...

Question: (a) Consider that every software failure can be classified as either • Syntactic, • Semantic, • System crash. Suppose additionally that every system crash fa

Management issues in software development, Q. Management Issues in software...

Q. Management Issues in software development? Management Issues:-Project managers typically write the risk management plan and most people don't wish to air their weaknesses in

What is outputs, What is Outputs? Ans) Products, services, or informatio...

What is Outputs? Ans) Products, services, or information supplied to meet end user requirements.

Illustrate iterative waterfall model, Iterative waterfall model The ite...

Iterative waterfall model The iterative waterfall model is as shown in the following figure. Requirement gathering phase in which all needs are identified. The design

Demonstrate the sequence of prototyping, Demonstrate the Sequence of protot...

Demonstrate the Sequence of prototyping Sequence of prototyping is demonstrated in following Figure.

Explain system testing, The process of testing an integrated hardware and s...

The process of testing an integrated hardware and software system to determine that the system meets its described requirements. Such testing might be conducted in both the develop

What is operational requirements, What is Operational Requirements? Ans)...

What is Operational Requirements? Ans) Qualitative and quantitative parameters that states the desired operational capabilities of a system and serve as a basis for determining

Impact of offshoring of it jobs, Question: (a) "People have recourse t...

Question: (a) "People have recourse to outsourcing only for reducing cost". Show this statement on the motivations for outsourcing. (b) "Outsourcing is a threat to the co

Behavioral analysis model, Behavioral Analysis Model The Behavioral ...

Behavioral Analysis Model The Behavioral analysis is an operational technique for all requirement analysis techniques. When a sensor event is recognized the software invokes

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