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

Define the optimising level of maturity model, Level 5 (Optimising) O...

Level 5 (Optimising) Organisation satisfies all the requirements of level-4. This is final level. Organisation at this maturity level is considered almost perfect. At this st

Determine the boundary value analysis, What is a boundary value analysis? ...

What is a boundary value analysis? A boundary value analysis is a testing procedure by which the elements at the edge of the domain are selected and tested. It is a test case d

Explain information management strategy, Question: (a) ‘Information Str...

Question: (a) ‘Information Strategy involves the encompassing of an organisation's information requirements and information systems planning with its long-term objectives.' T

Contrast between project logic evaluation and networking, QUESTION (a) ...

QUESTION (a) Compare and contrast between Project logic evaluation (PLE), Networking and Scheduling (b) Discuss how the true cost of defects can often be higher than the ini

Discuss the problems faced during software maintenance, Q. Discuss the prob...

Q. Discuss the problems faced during software maintenance? The most significant problem during maintenance is that before correcting or else modifying a program the programmer

Discuss in details the design steps in transaction mapping, Discuss in deta...

Discuss in details the design steps in transaction mapping. Re-Check the fundamental model. Re-check and refine the DFD for the software. Determine the DFD has either

Explain function points, Function points: Function point calculates the fu...

Function points: Function point calculates the functionality from the user point of view, that is, on the basis of what the user request and receives in return. Thus, it deals wit

Define the meaning of code inspection, Define the meaning of Code Inspectio...

Define the meaning of Code Inspection - A formal testing technique where programmer reviews source code with a group who ask questions analyzing program logic, analyzing code

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