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 briefly on the seven stages in a product life cycle, Problem 1: ...

Problem 1: Describe briefly on the seven stages in a product life cycle. Problem 2: What do you meant by SSAD? Explain in detail. Problem 3: What is a predictiv

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

Explain about integration testing, Q. Explain about Integration testing? ...

Q. Explain about Integration testing? Integration testing: The primary objective of integration testing is to test the module interfaces, i.e. there are no errors in the para

Determine the working of developer of software, Determine the working of de...

Determine the working of developer of Software As developer of Software and user of Software became separate organisation, business concepts such as software costing, Software

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

State about the elementary modeling techniques, State about the Elementary ...

State about the Elementary Modeling Techniques A model illustrating bare minimum requirements is known as Essential Model. It has two components: a) Environmental model B)

Describe the types of structure charts, Q. Describe the Types of Structure ...

Q. Describe the Types of Structure Charts? Transaction structure it control module calls subordinate modules each of which handles a particular transaction Many afferent

Explain storage testing, This is a explanation of whether or not certain pr...

This is a explanation of whether or not certain processing conditions use many storage [memory] than estimated.

What is sci, What is SCI? Software Configuration Item is in order that ...

What is SCI? Software Configuration Item is in order that is carried as part of the software engineering process.

Briefly explain the requirement capture methods, Problem: (a) Briefly e...

Problem: (a) Briefly explain the requirement capture methods. (c) Using examples, write short notes on the following: i) Aggregation ii) Composition iii) Generalisation

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