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 do you mean by configuration management, Q. What do you mean by Config...

Q. What do you mean by Configuration Management? Because of several reasons software changes during its life cycle. Consequently of the change made multiple versions of the sof

What is oo integration testing, This strategy includes testing the classes ...

This strategy includes testing the classes as they are integrated into the system. The traditional approach would test every operation separately as they are executed into a class.

What are cmmi model components, What are CMMI model components? Proces...

What are CMMI model components? Process areas 24 process areas that are applicable to process capability and improvement are identified. These are organised int

Explain applicability, Applicability: It is another significant characteri...

Applicability: It is another significant characteristic of a model. The model should be judged by its degree of applicability across software products that change in size, structu

Determine ways to handle concurrency, How to handle concurrency:  Mech...

How to handle concurrency:  Mechanisms Locks Semaphores Monitors Synchronized methods Methods Deadlock avoidance Verification Sim

Simulate the operations of a scientific calculator, Q. A program is to be d...

Q. A program is to be developed to simulate the operations of a scientific calculator. List the facilities to be provided by this calculator. Analyze this using DFD? Level 0

Define capability, Define capability. What are the quantities that determin...

Define capability. What are the quantities that determine the degree of capability of a software reliability model? Capability refers to the ability of the model to calculate w

Unix, A friend has promised to log in at a particular time. However, he nee...

A friend has promised to log in at a particular time. However, he needs to be contacted as soon as he logs in. The shell script checks after every minute whether he has logged in o

Normalization, normalization Explain its forms in brief

normalization Explain its forms in brief

What are the benefits of evolutionary prototyping, What are the benefits of...

What are the benefits of evolutionary prototyping? i. Fast delivery of the working system. ii. User is included while developing the system. iii. More useful system can b

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