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

Software testing, Discuss the limitations of software testing. How do we sa...

Discuss the limitations of software testing. How do we say that complete testing is impossible?.

Differences between programme managers and project managers, Question: ...

Question: (a) Differences between programme managers and project managers. (b) A small computer system controls the entry of vehicles to a car park. Each time a vehicle pu

What is constructive cost model, Q. What is Constructive Cost Model? CO...

Q. What is Constructive Cost Model? COCOMO model denotes Constructive Cost Model. It is an empirical model basis on project experience. It is well-documented and independent mo

DFD AND DATA DICTIONARY, Hoosier Burger''s food ordering system dfd and dat...

Hoosier Burger''s food ordering system dfd and data dictionary

Determine the system evolution of life cycle process, System evolution of l...

System evolution of life cycle process The lifetime of verge systems is too long. They must evolve to meet change requests. The evolution may be expensive. Existing sy

Expert Systems, Explain model-based expert systems and frame-based expert s...

Explain model-based expert systems and frame-based expert systems

Defining a prototype on the overall cost, Describe the effect of defining a...

Describe the effect of defining a prototype on the overall cost of the software project? The prototyping model: In this model, a prototype (an previous approximation of a fin

What are the testing principles the software engineer, What are the testing...

What are the testing principles the software engineer must apply while performing the software testing? i. All tests should be traceable according to customer requirements.

Explain bottom-up integration, Bottom-up integration This testing start...

Bottom-up integration This testing starts construction and testing with the components at the lowest levels in the program structure.

What is user friendly software, A computer program is "user friendly", when...

A computer program is "user friendly", when it is designed with simple of use, as one of the primary purposes of its design.

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