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 verification represent, What is Verification represent? Verific...

What is Verification represent? Verification represents the set of actions that are performed to confirm that the software correctly implements the particular functionality.

Why software design improve when we use oops concepts, Q. Why does the soft...

Q. Why does the software design improve when we use object-oriented concepts? Ans. The software design gets betters when we use object-oriented concepts because 1.Object-o

What is coverage analysis, What is Coverage analysis? Determining and as...

What is Coverage analysis? Determining and assessing calculated associated with the invocation of program structural elements to verify the adequacy of a test run. Coverage anal

What is a test configuration manager, Test Configuration Managers handles t...

Test Configuration Managers handles test environments, scripts, software and test data. Depending on the project, single person may wear more than single hat. For example, Test Eng

Explain static multivariable model, Q. Explain Static multivariable model? ...

Q. Explain Static multivariable model? They relies on several variables representing various aspects of the software development environment for example methods used and user p

What is software life cycle, Software life cycle starts when a software pro...

Software life cycle starts when a software product is first conceived and ends when it is no longer in use. It contains aspects such as initial concept, requirements analysis, inte

What are the advantages of evolutionary prototyping, What are the advantage...

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

Define data objects and relationship, Define Data objects, attributes & rel...

Define Data objects, attributes & relationship. Data object: Representation of any collective  information that must be understood by software. It can be any external entity.

Define data dictionary, Define Data Dictionary. The data dictionary is ...

Define Data Dictionary. The data dictionary is defined as an organized collection of all the data elements of the system with accurate and rigorous definitions so that user and

Different type of testing tools, Different type of testing tools. (a) T...

Different type of testing tools. (a) Test Case Generators: (b) Capture/ Playback and Test harness tools: (c)  Coverage Analysis Tools: (d) Test Comparators e) Memor

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